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:
parent
76b27417d4
commit
e66716710a
@ -137,7 +137,7 @@ def update_route(
|
||||
inv.quantity
|
||||
for ko in item.kots
|
||||
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,
|
||||
2,
|
||||
|
Loading…
Reference in New Issue
Block a user