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