update all pdf for no table

This commit is contained in:
Aung Myo
2018-02-21 16:25:01 +06:30
parent 5e6b096111
commit 5f67a91fd6
6 changed files with 36 additions and 13 deletions

View File

@@ -37,8 +37,11 @@ class OrderSetItemPdf < Prawn::Document
# font "public/fonts/Zawgyi-One.ttf"
# font "public/fonts/padauk.ttf"
#font "public/fonts/Chinese.ttf"
text "#{ order_set_item.type + '-' + order_set_item.dining + print_status }", :size => self.header_font_size,:align => :center, :left_margin => -20
if order_set_item.dining.to_i > 0
text "#{ order_set_item.type + '-' + order_set_item.dining + print_status }", :size => self.header_font_size,:align => :center, :left_margin => -20
else
text "#{ print_status }", :size => self.header_font_size,:align => :center, :left_margin => -20
end
stroke_horizontal_rule
move_down 3