fix(pos): cannot set qty to less than zero (#25258)
This commit is contained in:
parent
207166fe8b
commit
b8a270074e
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user