mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user