feat: previas con sitema de reservas refs #6861 #2176
|
@ -55,16 +55,13 @@ BEGIN
|
|||
|
||||
SELECT id INTO vItemShelvingFk
|
||||
FROM itemShelving
|
||||
WHERE id = vItemShelvingFk
|
||||
AND FALSE
|
||||
WHERE id = vItemShelvingFk
|
||||
FOR UPDATE;
|
||||
carlosap marked this conversation as resolved
|
||||
|
||||
UPDATE itemShelving
|
||||
SET visible = GREATEST(0, visible - vQuantity)
|
||||
WHERE id = vItemShelvingFk;
|
||||
|
||||
|
||||
|
||||
SELECT SUM(IF(isPicked, 0, quantity)), SUM(quantity)
|
||||
INTO vRemainingQuantity, vTotalQuantity
|
||||
FROM itemShelvingSale
|
||||
|
|
|
@ -6,7 +6,7 @@ BEGIN
|
|||
|
||||
UPDATE sale s
|
||||
JOIN operator o ON o.workerFk = account.myUser_getId()
|
||||
SET s.isPicked = IF(o.isOnReservationMode, isPicked, TRUE)
|
||||
SET s.isPicked = IF(o.isOnReservationMode, s.isPicked, TRUE)
|
||||
WHERE id = NEW.saleFk;
|
||||
END$$
|
||||
DELIMITER ;
|
Loading…
Reference in New Issue
per a que val esta linea¿?