order item - alter name in myanmar font error fixed
This commit is contained in:
@@ -106,9 +106,9 @@ class MoveTablePdf < Prawn::Document
|
|||||||
|
|
||||||
if !(odi.alt_name).empty?
|
if !(odi.alt_name).empty?
|
||||||
move_down 4
|
move_down 4
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -118,9 +118,9 @@ class OrderItemCustomisePdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if order_item.alt_name
|
if order_item.alt_name
|
||||||
move_down 4
|
move_down 4
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/Zawgyi-One.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
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -117,9 +117,9 @@ class OrderItemPdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if order_item.alt_name
|
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
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -116,14 +116,14 @@ class OrderItemSlimCustomisePdf < Prawn::Document
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# if alt_name
|
if alt_name
|
||||||
# if order_item_slim.alt_name
|
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
|
||||||
# end
|
# end
|
||||||
# end
|
end
|
||||||
# end
|
end
|
||||||
|
|
||||||
if !options.empty?
|
if !options.empty?
|
||||||
move_down 1
|
move_down 1
|
||||||
|
|||||||
@@ -118,9 +118,9 @@ class OrderItemSlimPdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if order_item_slim.alt_name
|
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
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -117,9 +117,9 @@ class OrderSetItemCustomisePdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if order_set_item.alt_name
|
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
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -116,9 +116,9 @@ class OrderSetItemPdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if order_set_item.alt_name
|
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
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -124,9 +124,9 @@ class OrderSummaryCustomisePdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if !(odi.alt_name).empty?
|
if !(odi.alt_name).empty?
|
||||||
move_down 4
|
move_down 4
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -134,9 +134,9 @@ class OrderSummaryPdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if !(odi.alt_name).empty?
|
if !(odi.alt_name).empty?
|
||||||
move_down 4
|
move_down 4
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -123,9 +123,9 @@ class OrderSummarySetCustomisePdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if !(odi.alt_name).empty?
|
if !(odi.alt_name).empty?
|
||||||
move_down 4
|
move_down 4
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -133,9 +133,9 @@ class OrderSummarySetPdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if !(odi.alt_name).empty?
|
if !(odi.alt_name).empty?
|
||||||
move_down 4
|
move_down 4
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -126,9 +126,9 @@ class OrderSummarySlimCustomisePdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if !(odi.alt_name).empty?
|
if !(odi.alt_name).empty?
|
||||||
move_down 1
|
move_down 1
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -133,9 +133,9 @@ class OrderSummarySlimPdf < Prawn::Document
|
|||||||
if alt_name
|
if alt_name
|
||||||
if !(odi.alt_name).empty?
|
if !(odi.alt_name).empty?
|
||||||
move_down 1
|
move_down 1
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -305,9 +305,9 @@ class ReceiptBillA5Pdf < Prawn::Document
|
|||||||
if show_alt_name
|
if show_alt_name
|
||||||
if !(item.product_alt_name).empty?
|
if !(item.product_alt_name).empty?
|
||||||
move_down 2
|
move_down 2
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{item.product_alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{item.product_alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
move_down line_move
|
move_down line_move
|
||||||
|
|||||||
@@ -285,9 +285,9 @@ class ReceiptBillOrderPdf < Prawn::Document
|
|||||||
if show_alt_name
|
if show_alt_name
|
||||||
if !(item.product_alt_name).empty?
|
if !(item.product_alt_name).empty?
|
||||||
move_down 2
|
move_down 2
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{item.product_alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{item.product_alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
move_down line_move
|
move_down line_move
|
||||||
|
|||||||
@@ -299,9 +299,9 @@ class ReceiptBillPdf < Prawn::Document
|
|||||||
if show_alt_name
|
if show_alt_name
|
||||||
if !(item.product_alt_name).empty?
|
if !(item.product_alt_name).empty?
|
||||||
move_down 2
|
move_down 2
|
||||||
font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
# font("public/fonts/NotoSansCJKtc-Regular.ttf") do
|
||||||
text "(#{item.product_alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
text "(#{item.product_alt_name})", :size => self.item_font_size,:align => :left, :inline_format => true
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
move_down line_move
|
move_down line_move
|
||||||
|
|||||||
Reference in New Issue
Block a user