mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
Merge pull request #32006 from deepeshgarg007/cash_and_non_trade_discount_rounded_total
fix: Rounded total for cash and non trade discount invoices
This commit is contained in:
@@ -41,6 +41,7 @@ class calculate_taxes_and_totals(object):
|
|||||||
if self.doc.apply_discount_on == "Grand Total" and self.doc.get("is_cash_or_non_trade_discount"):
|
if self.doc.apply_discount_on == "Grand Total" and self.doc.get("is_cash_or_non_trade_discount"):
|
||||||
self.doc.grand_total -= self.doc.discount_amount
|
self.doc.grand_total -= self.doc.discount_amount
|
||||||
self.doc.base_grand_total -= self.doc.base_discount_amount
|
self.doc.base_grand_total -= self.doc.base_discount_amount
|
||||||
|
self.set_rounded_total()
|
||||||
|
|
||||||
self.calculate_shipping_charges()
|
self.calculate_shipping_charges()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user