diff --git a/erpnext/selling/page/point_of_sale/pos_item_cart.js b/erpnext/selling/page/point_of_sale/pos_item_cart.js index 28cb1aef3390..325f7b258a9a 100644 --- a/erpnext/selling/page/point_of_sale/pos_item_cart.js +++ b/erpnext/selling/page/point_of_sale/pos_item_cart.js @@ -928,13 +928,10 @@ erpnext.PointOfSale.ItemCart = class { const me = this; dfs.forEach((df) => { this[`customer_${df.fieldname}_field`] = frappe.ui.form.make_control({ - df: df, + df: { ...df, onchange: handle_customer_field_change }, parent: $customer_form.find(`.${df.fieldname}-field`), render_input: true, }); - this[`customer_${df.fieldname}_field`].$input?.on("blur", () => { - handle_customer_field_change.apply(this[`customer_${df.fieldname}_field`]); - }); this[`customer_${df.fieldname}_field`].set_value(this.customer_info[df.fieldname]); });