fix: refs #6861 getTickets
gitea/salix/pipeline/pr-master This commit looks good Details

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

View File

@ -6,7 +6,7 @@ BEGIN
UPDATE sale s UPDATE sale s
JOIN operator o ON o.workerFk = account.myUser_getId() JOIN operator o ON o.workerFk = account.myUser_getId()
JOIN sector se ON se.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) SET s.isPicked = IF(IFNULL(se.isOnReservationMode, o.isOnReservationMode), s.isPicked, TRUE)
WHERE id = NEW.saleFk; WHERE s.id = NEW.saleFk;
END$$ END$$
DELIMITER ; DELIMITER ;