fix: refs #6861 getTickets
gitea/salix/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
Sergio De la torre 2024-10-15 17:07:35 +02:00
parent b592ccc162
commit 2adc424ccb
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`itemShelvingSale_afterI
BEGIN
UPDATE sale s
JOIN operator o ON o.workerFk = account.myUser_getId()
JOIN sector se ON s.id = o.sectorFk
JOIN sector se ON se.id = o.sectorFk
SET s.isPicked = IF((se.isOnReservationMode IS NULL AND o.isOnReservationMode) OR se.isOnReservationMode, s.isPicked, TRUE)
WHERE id = NEW.saleFk;
END$$