This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user