chore: minor change

(cherry picked from commit a51bec0269)
This commit is contained in:
Vishal
2023-02-23 12:26:42 +05:30
committed by Mergify
parent 786eb97ab4
commit f812dbc524

View File

@@ -246,7 +246,7 @@ class POSInvoice(SalesInvoice):
),
title=_("Item Unavailable"),
)
elif is_stock_item and flt(available_stock) < flt(d.qty * d.conversion_factor):
elif is_stock_item and flt(available_stock) < flt(d.stock_qty):
frappe.throw(
_(
"Row #{}: Stock quantity not enough for Item Code: {} under warehouse {}. Available quantity {}."