mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
fix: reset pos profile when default doesn't exists
This commit is contained in:
@@ -483,9 +483,7 @@ erpnext.pos.PointOfSale = class PointOfSale {
|
||||
reqd: 1,
|
||||
onchange: function(e) {
|
||||
me.get_default_pos_profile(this.value).then((r) => {
|
||||
if (r && r.name) {
|
||||
dialog.set_value('pos_profile', r.name);
|
||||
}
|
||||
dialog.set_value('pos_profile', (r && r.name)? r.name : '');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user