This commit is contained in:
parent
2adc424ccb
commit
12abca0a2d
|
@ -6,7 +6,7 @@ BEGIN
|
|||
UPDATE sale s
|
||||
JOIN operator o ON o.workerFk = account.myUser_getId()
|
||||
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;
|
||||
SET s.isPicked = IF(IFNULL(se.isOnReservationMode, o.isOnReservationMode), s.isPicked, TRUE)
|
||||
WHERE s.id = NEW.saleFk;
|
||||
END$$
|
||||
DELIMITER ;
|
Loading…
Reference in New Issue