table_id
This commit is contained in:
@@ -46,13 +46,16 @@ class ReceiptBillPdf < Prawn::Document
|
||||
|
||||
header(shop_details)
|
||||
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
|
||||
end
|
||||
bounding_box([self.description_width - 2,y_position], :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
|
||||
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
|
||||
end
|
||||
end
|
||||
move_down 1
|
||||
text "Customer Ph : #{sale_data.customer.contact_no}", :size => self.header_font_size,:align => :left
|
||||
move_down 1
|
||||
@@ -72,7 +75,7 @@ class ReceiptBillPdf < Prawn::Document
|
||||
else
|
||||
customer(customer_account,nil)
|
||||
end
|
||||
|
||||
|
||||
#start card sale trans data
|
||||
if card_data != nil
|
||||
card_sale_data(card_data)
|
||||
|
||||
Reference in New Issue
Block a user