Merge pull request #44320 from Abdeali099/fix-pos-qty

fix: Increase quantity by `1 UOM` when adding an item from the selector in `POS`
This commit is contained in:
ruthra kumar
2024-11-26 10:29:41 +05:30
committed by GitHub

View File

@@ -556,7 +556,7 @@ 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) + flt(value);
if (item_row_exists) {
if (field === "qty") value = flt(value);
@@ -695,7 +695,7 @@ erpnext.PointOfSale.Controller = class {
const is_stock_item = resp[1];
frappe.dom.unfreeze();
const bold_uom = item_row.uom.bold();
const bold_uom = item_row.stock_uom.bold();
const bold_item_code = item_row.item_code.bold();
const bold_warehouse = warehouse.bold();
const bold_available_qty = available_qty.toString().bold();