fix: Calculate totals even though pricing rule is not applied on mapped doc

- `apply_pricing_rule` is triggered due to change in some data which most likely contributes to Total.

(cherry picked from commit 494ddd1eb4)
This commit is contained in:
marination
2022-05-10 14:02:43 +05:30
committed by Mergify
parent 30b0aee013
commit 678a01d4bd

View File

@@ -1502,6 +1502,9 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
// Target doc created from a mapped doc
if (this.frm.doc.__onload && this.frm.doc.__onload.ignore_price_list) {
// Calculate totals even though pricing rule is not applied.
// `apply_pricing_rule` is triggered due to change in data which most likely contributes to Total.
if(calculate_taxes_and_totals) me.calculate_taxes_and_totals();
return;
}