fix: Increase quantity by 1 UOM when adding an item from the selector in POS

This commit is contained in:
Abdeali Chharchhoda
2024-11-25 14:13:26 +05:30
parent 8e72e35a21
commit bbab850135

View File

@@ -556,7 +556,9 @@ erpnext.PointOfSale.Controller = class {
const item_row_exists = !$.isEmptyObject(item_row);
const from_selector = field === "qty" && value === "+1";
if (from_selector) value = flt(item_row.stock_qty) + flt(value);
if (from_selector) {
value = flt(item_row.qty) + 1; // increase qty by 1 UOM
}
if (item_row_exists) {
if (field === "qty") value = flt(value);