mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Merge pull request #53059 from frappe/mergify/bp/version-16-hotfix/pr-53052
fix: use stock qty instead of qty when creating stock entry from MR (backport #53052)
This commit is contained in:
@@ -330,7 +330,8 @@ class MaterialRequest(BuyingController):
|
|||||||
|
|
||||||
if mr_qty_allowance:
|
if mr_qty_allowance:
|
||||||
allowed_qty = flt(
|
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):
|
if d.ordered_qty and flt(d.ordered_qty, precision) > flt(allowed_qty, precision):
|
||||||
|
|||||||
Reference in New Issue
Block a user