mobile order print

This commit is contained in:
Myat Zin Wai Maw
2019-12-04 15:13:06 +06:30
parent 7e7f8f173f
commit f404328089
17 changed files with 50 additions and 30 deletions

View File

@@ -42,7 +42,12 @@ class ReceiptBillA5Pdf < Prawn::Document
# font "public/fonts/padauk.ttf"
header(shop_details)
if sale_data.orders[0].source =='app'
text "Mobile Order", :size => self.header_font_size,:align => :left
move_down 1
text "Customer Ph : #{sale_data.customer.contact_no}", :size => self.header_font_size,:align => :left
move_down 1
end
stroke_horizontal_rule
cashier_info(sale_data, customer_name, latest_order_no)