origin pull master
This commit is contained in:
@@ -5,14 +5,27 @@ class OrderItemPdf < Prawn::Document
|
||||
|
||||
# font "public/fonts/#{font_name}".to_s + ".ttf".to_s
|
||||
# font "public/fonts/Zawgyi-One.ttf"
|
||||
# font "public/fonts/padauk.ttf"
|
||||
|
||||
|
||||
# font "public/fonts/padauk.ttf"
|
||||
font_size 9
|
||||
text "#{"table_name"}", :size => 15
|
||||
text "#{order_item.dining}", :size => 15
|
||||
stroke_horizontal_rule
|
||||
move_down 5
|
||||
|
||||
cashier_info(order_item.order_by,order_item.order_at, order_item.customer)
|
||||
|
||||
end
|
||||
|
||||
def cashier_info(order_by, order_at, customer)
|
||||
move_down 5
|
||||
y_position = cursor
|
||||
|
||||
bounding_box([0,y_position], :width =>200, :height => 20) do
|
||||
text "OrderBy:#{order_by} Customer:#{customer} Date:#{order_at.strftime("%Y %m %d")}", :size => 7,:align => :left
|
||||
end
|
||||
|
||||
stroke_horizontal_rule
|
||||
|
||||
move_down 5
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user