fix: stock entry decimal issue (#36530)
(cherry picked from commit 28dfc88789)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -228,7 +228,8 @@ class MaterialRequest(BuyingController):
|
|||||||
d.ordered_qty = flt(mr_items_ordered_qty.get(d.name))
|
d.ordered_qty = flt(mr_items_ordered_qty.get(d.name))
|
||||||
|
|
||||||
if mr_qty_allowance:
|
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:
|
if d.ordered_qty and d.ordered_qty > allowed_qty:
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_(
|
_(
|
||||||
|
|||||||
Reference in New Issue
Block a user