check alt_name error
This commit is contained in:
@@ -110,7 +110,7 @@ class OrderItemPdf < Prawn::Document
|
|||||||
end
|
end
|
||||||
|
|
||||||
if alt_name
|
if alt_name
|
||||||
if !(order_item.alt_name).empty?
|
if order_item.alt_name
|
||||||
move_down 4
|
move_down 4
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{order_item.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{order_item.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ class OrderItemSlimPdf < Prawn::Document
|
|||||||
end
|
end
|
||||||
|
|
||||||
# if alt_name
|
# if alt_name
|
||||||
# if !(order_item_slim.alt_name).empty?
|
# if order_item_slim.alt_name
|
||||||
# move_down 1
|
# move_down 1
|
||||||
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# 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
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ class OrderSetItemPdf < Prawn::Document
|
|||||||
end
|
end
|
||||||
|
|
||||||
if alt_name
|
if alt_name
|
||||||
if !(order_set_item.alt_name).empty?
|
if order_set_item.alt_name
|
||||||
move_down 4
|
move_down 4
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{order_set_item.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{order_set_item.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
|
|||||||
Reference in New Issue
Block a user