This commit is contained in:
Myat Zin Wai Maw
2019-12-04 13:33:13 +06:30
parent 15361fe4e1
commit 08f5689841
28 changed files with 314 additions and 100 deletions

View File

@@ -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)