To add the condition for CloseCashierCustmisePdf

This commit is contained in:
San Wai Lwin
2018-02-26 18:29:58 +06:30
parent 7d8442fd09
commit 72b5701ec9
4 changed files with 12 additions and 14 deletions

View File

@@ -455,12 +455,13 @@ class CloseCashierCustomisePdf < Prawn::Document
bounding_box([self.item_description_width,y_position], :width =>self.price_width, :height => 20) do
text "-#{ number_with_precision(@overall, :precision => precision.to_i, :delimiter => delimiter)}", :size => self.item_font_size, :align => :right
end
move_down -5
stroke_horizontal_rule
move_down 7
end
#end total over all discount
move_down -5
stroke_horizontal_rule
move_down 7
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do