Skip to content

Commit

Permalink
Revert "fix: update customer contact details on pos (backport #45071) (
Browse files Browse the repository at this point in the history
…#45106)"

This reverts commit 01254da.
  • Loading branch information
diptanilsaha authored Jan 6, 2025
1 parent 01254da commit 2f2a75a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions erpnext/selling/page/point_of_sale/pos_item_cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
});

Expand Down

0 comments on commit 2f2a75a

Please sign in to comment.