mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-14 04:15:10 +00:00
fix: use stock qty instead of qty when creating stock entry from MR
(cherry picked from commit 30c3ff2efe)
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