This commit is contained in:
Myat Zin Wai Maw
2020-02-27 16:47:22 +06:30
parent 4bffd640a0
commit 75e9a63c50
18 changed files with 68 additions and 68 deletions

View File

@@ -38,7 +38,7 @@ class OrderItemCustomisePdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order_item.contact_no}", :size => self.header_font_size,:align => :left
end
if !order_item.dining.nil?

View File

@@ -39,7 +39,7 @@ class OrderItemPdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order_item.contact_no}", :size => self.header_font_size,:align => :left
end
if !order_item.dining.nil?

View File

@@ -38,7 +38,7 @@ class OrderItemSlimCustomisePdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order_item_slim.contact_no}", :size => self.header_font_size,:align => :left
end
if !order_item_slim.dining.nil?

View File

@@ -38,7 +38,7 @@ class OrderItemSlimPdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order_item_slim.contact_no}", :size => self.header_font_size,:align => :left
end
if !order_item.dining.nil?

View File

@@ -39,7 +39,7 @@ class OrderItemStarPdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order_item.contact_no}", :size => self.header_font_size,:align => :left
end
if !order_item.dining.nil?

View File

@@ -38,7 +38,7 @@ class OrderSetItemCustomisePdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order_set_item.contact_no}", :size => self.header_font_size,:align => :left
end
if !order_set_item.dining.nil?

View File

@@ -37,7 +37,7 @@ class OrderSetItemPdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order_set_item.contact_no}", :size => self.header_font_size,:align => :left
end
if !order_set_item.dining.nil?

View File

@@ -37,7 +37,7 @@ class OrderSummaryCustomisePdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order[0].contact_no}", :size => self.header_font_size,:align => :left
end
if !order_item.dining.nil?

View File

@@ -36,7 +36,7 @@ class OrderSummaryPdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order[0].contact_no}", :size => self.header_font_size,:align => :left
end
if !order[0].dining.nil?

View File

@@ -37,7 +37,7 @@ class OrderSummarySetCustomisePdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order[0].contact_no}", :size => self.header_font_size,:align => :left
end
if !order[0].dining.nil?

View File

@@ -37,7 +37,7 @@ class OrderSummarySetPdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order[0].contact_no}", :size => self.header_font_size,:align => :left
end
if !order[0].dining.nil?

View File

@@ -37,7 +37,7 @@ class OrderSummarySlimCustomisePdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order[0].contact_no}", :size => self.header_font_size,:align => :left
end
if !order[0].dining.nil?

View File

@@ -36,7 +36,7 @@ class OrderSummarySlimPdf < Prawn::Document
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 1
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{order[0].contact_no}", :size => self.header_font_size,:align => :left
end
if !order[0].dining.nil?

View File

@@ -43,12 +43,12 @@ class ReceiptBillA5Pdf < Prawn::Document
header(shop_details)
if sale_data.orders[0].source =='app'
move_down 3
move_down 2
y_position = cursor
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 2
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{sale_data.customer.contact_no}", :size => self.header_font_size,:align => :left
end
if !sale_data.bookings[0].dining_facility.nil?

View File

@@ -44,12 +44,12 @@ class ReceiptBillOrderPdf < Prawn::Document
header(shop_details)
if sale_data.orders[0].source =='app'
move_down 3
move_down 2
y_position = cursor
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 2
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{sale_data.customer.contact_no}", :size => self.header_font_size,:align => :left
end
if !sale_data.bookings[0].dining_facility.nil?

View File

@@ -47,12 +47,11 @@ class ReceiptBillPdf < Prawn::Document
header(shop_details)
if sale_data.orders[0].source =='app'
move_down 3
y_position = cursor
move_down 2
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 2
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{sale_data.customer.contact_no}", :size => self.header_font_size,:align => :left
end
if !sale_data.bookings[0].dining_facility.nil?

View File

@@ -45,12 +45,12 @@ class ReceiptBillStarPdf < Prawn::Document
header(shop_details)
if sale_data.orders[0].source =='app'
move_down 3
move_down 2
y_position = cursor
text "Mobile Order", :size => self.header_font_size,:align => :center, :style=>:bold
move_down 2
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
bounding_box([0,y_position], :width =>self.item_description_width) do
text "#{sale_data.customer.contact_no}", :size => self.header_font_size,:align => :left
end
if !sale_data.bookings[0].dining_facility.nil?