receipt update

This commit is contained in:
Min Zeya Phyo
2017-04-22 00:09:07 +06:30
parent f860954a7f
commit 62e8615f12
7 changed files with 202 additions and 0 deletions

18
app/pdf/order_item_pdf.rb Normal file
View File

@@ -0,0 +1,18 @@
class OrderItemPdf < Prawn::Document
def initialize(order_item, print_settings)
super(:margin => [10, 5, 30, 5], :page_size => [200,400])
# font "public/fonts/#{font_name}".to_s + ".ttf".to_s
# font "public/fonts/Zawgyi-One.ttf"
# font "public/fonts/padauk.ttf"
font_size 9
text "#{"table_name"}", :size => 15
stroke_horizontal_rule
move_down 5
end
end