mobile order print
This commit is contained in:
@@ -35,9 +35,9 @@ class OrderItemCustomisePdf < Prawn::Document
|
||||
# font "public/fonts/padauk.ttf"
|
||||
#font "public/fonts/Chinese.ttf"
|
||||
if order_item.source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order_item.contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order_item.contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order_item.dining.nil?
|
||||
|
||||
@@ -36,9 +36,9 @@ class OrderItemPdf < Prawn::Document
|
||||
# font "public/fonts/padauk.ttf"
|
||||
#font "public/fonts/Chinese.ttf"
|
||||
if order_item.source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order_item.contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order_item.contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order_item.dining.nil?
|
||||
|
||||
@@ -35,9 +35,9 @@ class OrderItemSlimCustomisePdf < Prawn::Document
|
||||
# font "public/fonts/padauk.ttf"
|
||||
#font "public/fonts/Chinese.ttf"
|
||||
if order_item_slim.source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order_item_slim.contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order_item_slim.contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order_item_slim.dining.nil?
|
||||
|
||||
@@ -35,9 +35,9 @@ class OrderItemSlimPdf < Prawn::Document
|
||||
# font "public/fonts/padauk.ttf"
|
||||
#font "public/fonts/Chinese.ttf"
|
||||
if order_item_slim.source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order_item_slim.contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order_item_slim.contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order_item_slim.dining.nil?
|
||||
|
||||
@@ -36,9 +36,9 @@ class OrderItemStarPdf < Prawn::Document
|
||||
# font "public/fonts/padauk.ttf"
|
||||
#font "public/fonts/Chinese.ttf"
|
||||
if order_item.source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order_item.contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order_item.contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order_item.dining.nil?
|
||||
|
||||
@@ -35,9 +35,9 @@ class OrderSetItemCustomisePdf < Prawn::Document
|
||||
# font "public/fonts/padauk.ttf"
|
||||
#font "public/fonts/Chinese.ttf"
|
||||
if order_set_item.source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order_set_item.contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order_set_item.contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order_set_item.dining.nil?
|
||||
|
||||
@@ -34,9 +34,9 @@ class OrderSetItemPdf < Prawn::Document
|
||||
# font "public/fonts/padauk.ttf"
|
||||
#font "public/fonts/Chinese.ttf"
|
||||
if order_set_item.source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order_set_item.contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order_set_item.contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order_set_item.dining.nil?
|
||||
|
||||
@@ -35,9 +35,9 @@ class OrderSummaryCustomisePdf < Prawn::Document
|
||||
# font "public/fonts/padauk.ttf"
|
||||
|
||||
if order[0].source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order[0].dining.nil?
|
||||
|
||||
@@ -33,9 +33,9 @@ class OrderSummaryPdf < 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
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order[0].dining.nil?
|
||||
|
||||
@@ -35,9 +35,9 @@ class OrderSummarySetCustomisePdf < Prawn::Document
|
||||
# font "public/fonts/padauk.ttf"
|
||||
|
||||
if order[0].source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order[0].dining.nil?
|
||||
|
||||
@@ -34,9 +34,9 @@ class OrderSummarySetPdf < Prawn::Document
|
||||
# font "public/fonts/padauk.ttf"
|
||||
|
||||
if order[0].source =='app'
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :center
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order[0].dining.nil?
|
||||
|
||||
@@ -34,9 +34,9 @@ class OrderSummarySlimCustomisePdf < 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
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order[0].dining.nil?
|
||||
|
||||
@@ -33,9 +33,9 @@ class OrderSummarySlimPdf < 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
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :center
|
||||
text "Customer Ph : #{order[0].contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
end
|
||||
if !order[0].dining.nil?
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -43,7 +43,12 @@ class ReceiptBillOrderPdf < 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,order_reservation)
|
||||
|
||||
@@ -45,7 +45,12 @@ class ReceiptBillPdf < 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)
|
||||
|
||||
@@ -44,7 +44,12 @@ class ReceiptBillStarPdf < 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)
|
||||
|
||||
Reference in New Issue
Block a user