Fix: Checking for product reductions would check the product version id and not the product id resulting in wrong error message that the quantitity cannot be reduced.
This commit is contained in:
@ -137,7 +137,7 @@ def update_route(
|
|||||||
inv.quantity
|
inv.quantity
|
||||||
for ko in item.kots
|
for ko in item.kots
|
||||||
for inv in ko.inventories
|
for inv in ko.inventories
|
||||||
if ko.id and inv.product_id == product.id
|
if ko.id and inv.product_id == product.product_id
|
||||||
)
|
)
|
||||||
* -1,
|
* -1,
|
||||||
2,
|
2,
|
||||||
|
|||||||
Reference in New Issue
Block a user