fix: reset pos profile when default doesn't exists

This commit is contained in:
Mangesh-Khairnar 2019-11-19 18:21:53 +05:30
parent f69b9a8c47
commit c436d93303

View File

@ -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 : '');
});
}
},