update print oqs order item
This commit is contained in:
@@ -75,21 +75,23 @@ class OrderItemPdf < Prawn::Document
|
|||||||
|
|
||||||
move_down 5
|
move_down 5
|
||||||
|
|
||||||
bounding_box([0,y_position], :width => self.item_width, :height => self.item_height) do
|
bounding_box([0,y_position], :width => self.item_width) do
|
||||||
text "#{order_item.item_name}", :size => self.item_font_size,:align => :left
|
text "#{order_item.item_name}", :size => self.item_font_size,:align => :left
|
||||||
end
|
end
|
||||||
|
|
||||||
bounding_box([self.item_width,y_position], :width => self.qty_width, :height => self.item_height) do
|
bounding_box([self.item_width,y_position], :width => self.qty_width) do
|
||||||
text "[#{order_item.qty.to_i}]", :size => self.item_font_size,:align => :left
|
text "[#{order_item.qty.to_i}]", :size => self.item_font_size,:align => :left
|
||||||
end
|
end
|
||||||
|
|
||||||
move_down 3
|
bounding_box([0,y_position], :width => self.item_width) do
|
||||||
|
text "#{order_item.item_name}", :size => self.item_font_size,:align => :left
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
if alt_name
|
if alt_name
|
||||||
y_position = cursor
|
move_down 4
|
||||||
bounding_box([0,y_position], :width => self.item_width, :height => self.item_height) do
|
font("public/fonts/Chinese.ttf") do
|
||||||
font("public/fonts/Chinese.ttf", :size => 14) 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user