mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix(pos): cannot set qty to less than zero (#25258)
This commit is contained in:
@@ -279,11 +279,6 @@ erpnext.PointOfSale.Controller = class {
|
|||||||
const item_row = frappe.model.get_doc(cdt, cdn);
|
const item_row = frappe.model.get_doc(cdt, cdn);
|
||||||
if (item_row && item_row[fieldname] != value) {
|
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 { item_code, batch_no, uom } = this.item_details.current_item;
|
||||||
const event = {
|
const event = {
|
||||||
field: fieldname,
|
field: fieldname,
|
||||||
|
|||||||
Reference in New Issue
Block a user