mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 21:22:42 +01:00
fix: use stock qty instead of qty when creating stock entry from MR
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