Merge pull request #40019 from frappe/mergify/bp/version-15-hotfix/pr-39999

fix: TypeError for item pricing rules (backport #39999)
This commit is contained in:
Gursheen Kaur Anand 2024-02-22 09:10:17 +05:30 committed by GitHub
commit 43c218c673
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1509,6 +1509,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
}
remove_pricing_rule_for_item(item) {
if (item.pricing_rules){
let me = this;
return this.frm.call({
method: "erpnext.accounts.doctype.pricing_rule.pricing_rule.remove_pricing_rule_for_item",
@ -1535,6 +1536,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
}
});
}
}
apply_pricing_rule(item, calculate_taxes_and_totals) {
var me = this;