fix: pos additional information fields not updating on removal of data (#47663)

This commit is contained in:
Diptanil Saha
2025-05-21 18:36:26 +05:30
committed by GitHub
parent 8c86def018
commit b2696bf659

View File

@@ -71,9 +71,9 @@ erpnext.PointOfSale.Payment = class {
set_values_to_frm(values) {
const frm = this.events.get_frm();
for (const value in values) {
frm.set_value(value, values[value]);
}
this.addl_dlg.fields.forEach((df) => {
frm.set_value(df.fieldname, values[df.fieldname]);
});
frappe.show_alert({
message: __("Additional Information updated successfully."),
indicator: "green",