change order no font size in receipt billဓ
This commit is contained in:
@@ -113,6 +113,11 @@ class ReceiptBillA5Pdf < Prawn::Document
|
|||||||
end
|
end
|
||||||
|
|
||||||
def cashier_info(sale_data, customer_name, latest_order_no)
|
def cashier_info(sale_data, customer_name, latest_order_no)
|
||||||
|
move_down line_move
|
||||||
|
if !latest_order_no.nil?
|
||||||
|
move_down line_move
|
||||||
|
text "OrderNo : #{ latest_order_no }", :size => self.header_font_size,:align => :left
|
||||||
|
end
|
||||||
move_down line_move
|
move_down line_move
|
||||||
# move_down 2
|
# move_down 2
|
||||||
y_position = cursor
|
y_position = cursor
|
||||||
@@ -159,15 +164,6 @@ class ReceiptBillA5Pdf < Prawn::Document
|
|||||||
# - #{ sale_data.bookings[0].checkin_at.utc.getlocal.strftime('%I:%M %p') })" ,
|
# - #{ sale_data.bookings[0].checkin_at.utc.getlocal.strftime('%I:%M %p') })" ,
|
||||||
# :size => self.item_font_size,:align => :right
|
# :size => self.item_font_size,:align => :right
|
||||||
# end
|
# end
|
||||||
|
|
||||||
if !latest_order_no.nil?
|
|
||||||
y_position = cursor
|
|
||||||
move_down line_move
|
|
||||||
bounding_box([0,y_position], :width =>self.page_width - 10, :height => self.item_height) do
|
|
||||||
text "OrderNo : #{ latest_order_no }",:size => self.item_font_size,:align => :left
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
move_down line_move
|
move_down line_move
|
||||||
stroke_horizontal_rule
|
stroke_horizontal_rule
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -114,7 +114,11 @@ class ReceiptBillPdf < Prawn::Document
|
|||||||
|
|
||||||
def cashier_info(sale_data, customer_name, latest_order_no)
|
def cashier_info(sale_data, customer_name, latest_order_no)
|
||||||
move_down line_move
|
move_down line_move
|
||||||
|
if !latest_order_no.nil?
|
||||||
|
move_down line_move
|
||||||
|
text "OrderNo : #{ latest_order_no }", :size => self.header_font_size,:align => :left
|
||||||
|
end
|
||||||
|
move_down line_move
|
||||||
# move_down 2
|
# move_down 2
|
||||||
y_position = cursor
|
y_position = cursor
|
||||||
bounding_box([0,y_position], :width =>self.description_width + self.price_num_width, :height => self.item_height) do
|
bounding_box([0,y_position], :width =>self.description_width + self.price_num_width, :height => self.item_height) do
|
||||||
@@ -153,13 +157,6 @@ class ReceiptBillPdf < Prawn::Document
|
|||||||
# - #{ sale_data.bookings[0].checkin_at.utc.getlocal.strftime('%I:%M %p') })" ,
|
# - #{ sale_data.bookings[0].checkin_at.utc.getlocal.strftime('%I:%M %p') })" ,
|
||||||
# :size => self.item_font_size,:align => :right
|
# :size => self.item_font_size,:align => :right
|
||||||
# end
|
# end
|
||||||
if !latest_order_no.nil?
|
|
||||||
y_position = cursor
|
|
||||||
move_down line_move
|
|
||||||
bounding_box([0,y_position], :width =>self.page_width - 10, :height => self.item_height) do
|
|
||||||
text "OrderNo : #{ latest_order_no }",:size => self.item_font_size,:align => :left
|
|
||||||
end
|
|
||||||
end
|
|
||||||
move_down line_move
|
move_down line_move
|
||||||
stroke_horizontal_rule
|
stroke_horizontal_rule
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user