diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 65de9b2d283f2835d765063d03ffdc5eef29c998..017004b2ab408ab7ddabc3ff2204bd835d844b29 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -1534,6 +1534,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: {