mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +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,
|
reqd: 1,
|
||||||
onchange: function(e) {
|
onchange: function(e) {
|
||||||
me.get_default_pos_profile(this.value).then((r) => {
|
me.get_default_pos_profile(this.value).then((r) => {
|
||||||
if (r && r.name) {
|
dialog.set_value('pos_profile', (r && r.name)? r.name : '');
|
||||||
dialog.set_value('pos_profile', r.name);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user