This commit is contained in:
@@ -32,6 +32,13 @@ class OrderSummarySetPdf < Prawn::Document
|
||||
|
||||
# font "public/fonts/Zawgyi-One.ttf"
|
||||
# font "public/fonts/padauk.ttf"
|
||||
|
||||
if order[0].source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
move_down 1
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :center
|
||||
move_down 1
|
||||
end
|
||||
if !order[0].dining.nil?
|
||||
text "#{ order[0].type + '-' + order[0].dining + print_status }", :size => self.header_font_size,:align => :center, :left_margin => -20
|
||||
else
|
||||
@@ -40,7 +47,6 @@ class OrderSummarySetPdf < Prawn::Document
|
||||
|
||||
stroke_horizontal_rule
|
||||
move_down 5
|
||||
|
||||
#order_info
|
||||
order_info(order[0].order_id, order[0].order_by,order[0].order_at)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user