fix rounding adjustment

This commit is contained in:
Thein Lin Kyaw
2020-05-17 13:55:38 +06:30
parent dde2b44be3
commit 115ed3c06b
2 changed files with 45 additions and 23 deletions

View File

@@ -2313,8 +2313,8 @@ private
self.total_amount = self.total_amount.round(precision)
self.total_discount = self.total_discount.round(precision)
self.total_tax = self.total_tax.round(precision)
self.grand_total = (self.total_amount - self.total_discount) + self.total_tax
end
self.grand_total = (self.total_amount - self.total_discount) + self.total_tax
adjust_rounding
end