Merge pull request #41802 from frappe/mergify/bp/version-15-hotfix/pr-41727

fix: Do no apply pricing rule on qty change for mapped docs (#41727)
This commit is contained in:
Deepesh Garg
2024-06-06 17:48:25 +05:30
committed by GitHub

View File

@@ -1246,8 +1246,8 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
}
qty(doc, cdt, cdn) {
if (!this.frm.doc.__onload?.load_after_mapping) {
let item = frappe.get_doc(cdt, cdn);
let item = frappe.get_doc(cdt, cdn);
if (!this.is_a_mapped_document(item)) {
// item.pricing_rules = ''
frappe.run_serially([
() => this.remove_pricing_rule_for_item(item),