change qty_width in pdf
This commit is contained in:
@@ -4,8 +4,8 @@ class OrderItemSlimPdf < Prawn::Document
|
||||
def initialize(print_settings,order_item_slim, print_status, options, alt_name, before_updated_qty)
|
||||
self.page_width = print_settings.page_width
|
||||
self.page_height = print_settings.page_height
|
||||
self.header_font_size = printer_settings.header_font_size.to_i
|
||||
self.item_font_size = printer_settings.item_font_size.to_i
|
||||
self.header_font_size = print_settings.header_font_size.to_i
|
||||
self.item_font_size = print_settings.item_font_size.to_i
|
||||
self.margin = 0
|
||||
self.price_width = 40 # No Need for item
|
||||
self.qty_width = 40
|
||||
@@ -105,14 +105,14 @@ class OrderItemSlimPdf < Prawn::Document
|
||||
|
||||
end
|
||||
|
||||
# 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
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
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
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if !options.empty?
|
||||
move_down 1
|
||||
|
||||
Reference in New Issue
Block a user