mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 05:32:46 +01:00
Merge pull request #53052 from mihir-kandoi/gh53035
This commit is contained in:
@@ -332,7 +332,8 @@ class MaterialRequest(BuyingController):
|
||||
|
||||
if mr_qty_allowance:
|
||||
allowed_qty = flt(
|
||||
(d.qty + (d.qty * (mr_qty_allowance / 100))), d.precision("ordered_qty")
|
||||
(d.stock_qty + (d.stock_qty * (mr_qty_allowance / 100))),
|
||||
d.precision("ordered_qty"),
|
||||
)
|
||||
|
||||
if d.ordered_qty and flt(d.ordered_qty, precision) > flt(allowed_qty, precision):
|
||||
|
||||
Reference in New Issue
Block a user