update close cashier for Total food amount precision

This commit is contained in:
Aung Myo
2018-01-09 16:40:42 +06:30
parent 871683fdc0
commit e3e32a0c10

View File

@@ -360,7 +360,7 @@ class CloseCashierPdf < Prawn::Document
text "Total #{amount.account_name} Amount :", :size => self.item_font_size, :align => :right
end
bounding_box([self.item_description_width,y_position], :width =>self.price_width, :height => 20) do
text "#{amount.total_price.round(2)} ", :size => self.item_font_size, :align => :right
text "#{number_with_precision(amount.total_price, :precision => precision.to_i, :delimiter => delimiter)} ", :size => self.item_font_size, :align => :right
end
end
#end total amount by Account