fix: value fetching for custom field in POS (#26367)

This commit is contained in:
Subin Tom 2021-07-09 14:35:11 +05:30 committed by GitHub
parent d53991857c
commit 9ac63da457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ erpnext.PointOfSale.Payment = class {
);
let df_events = {
onchange: function() {
frm.set_value(this.df.fieldname, this.value);
frm.set_value(this.df.fieldname, this.get_value());
}
};
if (df.fieldtype == "Button") {