Skip to content

Commit

Permalink
fix: stock entry decimal issue (#36530)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Aug 7, 2023
1 parent 21080af commit 28dfc88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/stock/doctype/material_request/material_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ def update_completed_qty(self, mr_items=None, update_modified=True):
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(
_(
Expand Down

0 comments on commit 28dfc88

Please sign in to comment.