Skip to content

Commit

Permalink
fix: update customer contact details on pos (#45071)
Browse files Browse the repository at this point in the history
* fix: update customer contact details on pos

* refactor: removed console log statement

(cherry picked from commit d79e561)
  • Loading branch information
diptanilsaha authored and mergify[bot] committed Jan 6, 2025
1 parent dadc826 commit 59ecde7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/selling/page/point_of_sale/pos_item_cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -928,10 +928,13 @@ erpnext.PointOfSale.ItemCart = class {
const me = this;
dfs.forEach((df) => {
this[`customer_${df.fieldname}_field`] = frappe.ui.form.make_control({
df: { ...df, onchange: handle_customer_field_change },
df: df,
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 59ecde7

Please sign in to comment.