update no table oqs print

This commit is contained in:
Aung Myo
2018-02-21 16:11:05 +06:30
parent c3af21d71c
commit 0302bb408b
6 changed files with 48 additions and 48 deletions

View File

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