fix: stock entry decimal issue (#36530)
This commit is contained in:
parent
21080afd92
commit
28dfc88789
@ -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(
|
||||
_(
|
||||
|
Loading…
x
Reference in New Issue
Block a user