diff --git a/erpnext/selling/page/point_of_sale/pos_controller.js b/erpnext/selling/page/point_of_sale/pos_controller.js index b3a025aabba3a5edcdf7f64852d5c0d20ea503e1..91d294b3a7fade229744a40f57a5b3110d0feabc 100644 --- a/erpnext/selling/page/point_of_sale/pos_controller.js +++ b/erpnext/selling/page/point_of_sale/pos_controller.js @@ -33,8 +33,8 @@ erpnext.PointOfSale.Controller = class { fieldname: "opening_amount", fieldtype: "Currency", in_list_view: 1, label: __("Opening Amount"), options: "company:company_currency", - change: function () { - dialog.fields_dict.balance_details.df.data.some(d => { + onchange: function () { + dialog.fields_dict.balance_details.df.data.some((d) => { if (d.idx == this.doc.idx) { d.opening_amount = this.value; dialog.fields_dict.balance_details.grid.refresh();