This commit is contained in:
@@ -46,20 +46,19 @@ class ReceiptBillOrderPdf < Prawn::Document
|
||||
if sale_data.orders[0].source =='app'
|
||||
move_down 3
|
||||
y_position = cursor
|
||||
bounding_box([0,y_position], :width =>self.description_width + self.price_num_width) do
|
||||
text "Mobile Order", :size => self.header_font_size,:align => :left
|
||||
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
|
||||
text "#{sale_data.customer.contact_no}", :size => self.header_font_size,:align => :left
|
||||
end
|
||||
if !sale_data.bookings[0].dining_facility.nil?
|
||||
bounding_box([0,y_position], :width =>self.description_width + self.price_num_width) do
|
||||
text "#{ sale_data.bookings[0].dining_facility.type } - #{ sale_data.bookings[0].dining_facility.name }" , :size => self.header_font_size,:align => :right,:style=>:bold
|
||||
bounding_box([self.item_description_width,y_position], :width =>self.label_width) do
|
||||
text "#{ sale_data.bookings[0].dining_facility.type } -#{ sale_data.bookings[0].dining_facility.name }" , :size => self.header_font_size,:align => :right
|
||||
end
|
||||
end
|
||||
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)
|
||||
line_items(sale_items,precision,delimiter,order_reservation)
|
||||
all_total(sale_data,precision,delimiter,order_reservation)
|
||||
@@ -80,6 +79,7 @@ class ReceiptBillOrderPdf < Prawn::Document
|
||||
end
|
||||
|
||||
def cashier_info(sale_data, customer_name, latest_order_no,order_reservation)
|
||||
stroke_horizontal_rule
|
||||
move_down line_move
|
||||
|
||||
# move_down 2
|
||||
|
||||
Reference in New Issue
Block a user