diff --git a/erpnext/selling/page/point_of_sale/pos_item_cart.js b/erpnext/selling/page/point_of_sale/pos_item_cart.js index 5b73568f8567dd15e82f707b12f094d3a3a6a63c..09d42b3c3b56981bba606f19eaf22ae1598be2ce 100644 --- a/erpnext/selling/page/point_of_sale/pos_item_cart.js +++ b/erpnext/selling/page/point_of_sale/pos_item_cart.js @@ -388,6 +388,14 @@ erpnext.PointOfSale.ItemCart = class { input_class: "input-xs", onchange: function () { this.value = flt(this.value); + if (this.value > 100) { + frappe.msgprint({ + title: __("Invalid Discount"), + indicator: "red", + message: __("Discount cannot be greater than 100%."), + }); + this.value = 0; + } frappe.model.set_value( frm.doc.doctype, frm.doc.name,