order item - alter name in myanmar font error fixed

This commit is contained in:
Zoey
2019-04-23 18:05:56 +06:30
parent fe3bbd3a8b
commit e44489ed6f
16 changed files with 36 additions and 36 deletions

View File

@@ -116,14 +116,14 @@ class OrderItemSlimCustomisePdf < Prawn::Document
end
# if alt_name
# if order_item_slim.alt_name
# move_down 1
if alt_name
if order_item_slim.alt_name
move_down 1
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
# text "(#{order_item_slim.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
text "(#{order_item_slim.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
# end
# end
# end
end
end
if !options.empty?
move_down 1