fix: stock entry decimal issue (#36530)

This commit is contained in:
rohitwaghchaure 2023-08-07 17:31:38 +05:30 committed by GitHub
parent 21080afd92
commit 28dfc88789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,8 @@ class MaterialRequest(BuyingController):
d.ordered_qty = flt(mr_items_ordered_qty.get(d.name))
if mr_qty_allowance:
allowed_qty = d.qty + (d.qty * (mr_qty_allowance / 100))
allowed_qty = flt((d.qty + (d.qty * (mr_qty_allowance / 100))), d.precision("ordered_qty"))
if d.ordered_qty and d.ordered_qty > allowed_qty:
frappe.throw(
_(