Merge pull request #18370 from Anurag810/fix_precision

fix: precision for base grand total amount
This commit is contained in:
rohitwaghchaure
2019-07-17 19:00:18 +05:30
committed by GitHub

View File

@@ -329,7 +329,7 @@ class calculate_taxes_and_totals(object):
self.doc.round_floats_in(self.doc, ["taxes_and_charges_added", "taxes_and_charges_deducted"])
self.doc.base_grand_total = flt(self.doc.grand_total * self.doc.conversion_rate) \
self.doc.base_grand_total = flt(self.doc.grand_total * self.doc.conversion_rate, self.doc.precision("base_grand_total")) \
if (self.doc.taxes_and_charges_added or self.doc.taxes_and_charges_deducted) \
else self.doc.base_net_total