[minor] fixes + patch (#14937)

This commit is contained in:
Rushabh Mehta
2018-07-17 18:22:51 +05:30
committed by Nabin Hait
parent 3c9839f832
commit 69fa808def
6 changed files with 13 additions and 7 deletions

View File

@@ -288,6 +288,9 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
if (callback) {
callback();
}
},
error: () => {
setTimeout(() => frappe.set_route('List', 'POS Profile'), 2000);
}
})
},
@@ -1187,7 +1190,7 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
message: __('Discount amount cannot be greater than 100%')
});
me.update_discount(item_code, discount);
}else{
}else{
me.update_discount(item_code, discount);
me.update_value();
}