fix: update customer contact details on pos (#45071)
* fix: update customer contact details on pos
* refactor: removed console log statement
(cherry picked from commit d79e561248)
Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
@@ -913,10 +913,13 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
const me = this;
|
const me = this;
|
||||||
dfs.forEach((df) => {
|
dfs.forEach((df) => {
|
||||||
this[`customer_${df.fieldname}_field`] = frappe.ui.form.make_control({
|
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`),
|
parent: $customer_form.find(`.${df.fieldname}-field`),
|
||||||
render_input: true,
|
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]);
|
this[`customer_${df.fieldname}_field`].set_value(this.customer_info[df.fieldname]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user