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.
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js
index 767221e..920254c 100644
--- a/erpnext/public/js/controllers/transaction.js
+++ b/erpnext/public/js/controllers/transaction.js
@@ -1390,6 +1390,9 @@
// 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;
}