Merge pull request #44331 from frappe/mergify/bp/version-15-hotfix/pr-44320

fix: Increase quantity by `1 UOM` when adding an item from the selector in `POS` (backport #44320)
This commit is contained in:
ruthra kumar
2024-11-26 10:40:45 +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);
@@ -687,7 +687,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();