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

@@ -34,6 +34,12 @@ class OrderSummaryCustomisePdf < 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