change item_width in customise pdf

This commit is contained in:
EikhantMon
2018-06-01 17:13:40 +06:30
parent d14b75dea2
commit 767386e750
8 changed files with 11 additions and 11 deletions

View File

@@ -97,7 +97,7 @@ class OrderItemCustomisePdf < Prawn::Document
text "#{order_item.item_code} - #{order_item.item_name}", :size => self.item_font_size,:align => :left
end
bounding_box([self.item_width,y_position], :width => self.qty_width) do
bounding_box([self.item_width - 10,y_position], :width => self.qty_width) do
text "[#{number_with_precision(order_item.qty.to_i, :precision => precision.to_i)}]", :size => self.item_font_size,:align => :left
end