diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index eea887bde88a4517e82ae2ea89b44374a0210e70..72d5db8fe6d8688d80dec40be7b1818e78bdc6a7 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -1501,6 +1501,9 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe remove_pricing_rule_for_item(item) { let me = this; + if (!item.pricing_rules) { + return + } return this.frm.call({ method: "erpnext.accounts.doctype.pricing_rule.pricing_rule.remove_pricing_rule_for_item", args: {