chore: minor changes in pos_controller

This commit is contained in:
Vishal 2023-02-28 11:01:54 +05:30
parent a51bec0269
commit f18ae5856f

View File

@ -522,7 +522,7 @@ erpnext.PointOfSale.Controller = class {
const from_selector = field === 'qty' && value === "+1";
if (from_selector)
value = flt(item_row.qty * item_row.conversion_factor) + flt(value);
value = flt(item_row.stock_qty) + flt(value);
if (item_row_exists) {
if (field === 'qty')