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,12 @@ class OrderItemSlimPdf < Prawn::Document
# font "public/fonts/Zawgyi-One.ttf"
# font "public/fonts/padauk.ttf"
#font "public/fonts/Chinese.ttf"
text "#{ order_item_slim.type + '-' + order_item_slim.dining + print_status }", :size => self.header_font_size,:align => :center, :left_margin => -20
if order_item_slim.dining.to_i > 0
text "#{ order_item_slim.type + '-' + order_item_slim.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 1