diff --git a/db/routines/vn/procedures/itemShelvingSale_addBySale.sql b/db/routines/vn/procedures/itemShelvingSale_addBySale.sql index 96c49b788..757f880f9 100644 --- a/db/routines/vn/procedures/itemShelvingSale_addBySale.sql +++ b/db/routines/vn/procedures/itemShelvingSale_addBySale.sql @@ -98,11 +98,12 @@ proc: BEGIN itemShelvingFk, saleFk, quantity, - userFk) + isPicked) SELECT vItemShelvingFk, vSaleFk, vReservedQuantity, - vUserFk; + vUserFk, + FALSE; UPDATE itemShelving SET available = available - vReservedQuantity