fix(pos): cannot set qty to less than zero (#25258)

This commit is contained in:
Saqib 2021-04-12 10:28:05 +05:30 committed by GitHub
parent 207166fe8b
commit b8a270074e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,11 +279,6 @@ erpnext.PointOfSale.Controller = class {
const item_row = frappe.model.get_doc(cdt, cdn);
if (item_row && item_row[fieldname] != value) {
if (fieldname === 'qty' && flt(value) == 0) {
this.remove_item_from_cart();
return;
}
const { item_code, batch_no, uom } = this.item_details.current_item;
const event = {
field: fieldname,