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:
Amritanshu Agrawal 2021-04-24 00:05:06 +05:30
parent 76b27417d4
commit e66716710a

View File

@ -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,