diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 1c9c0ab0a38..7e0dccc6a1c 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -97,7 +97,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ }); if(this.frm.doc.company && !this.frm.doc.amended_from) { - this.frm.script_manager.trigger("company"); + this.frm.trigger("company"); } } @@ -295,7 +295,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ if (item.serial_no) { if (!item.item_code) { - this.frm.script_manager.trigger("item_code", cdt, cdn); + this.frm.trigger("item_code", cdt, cdn); } else { var sr_no = [];