This commit is contained in:
parent
f57ab72482
commit
73b43aa254
|
@ -33,9 +33,9 @@ BEGIN
|
||||||
SET vLastWeek = util.VN_CURDATE() - INTERVAL 1 WEEK;
|
SET vLastWeek = util.VN_CURDATE() - INTERVAL 1 WEEK;
|
||||||
|
|
||||||
-- Comprobamos si es una prep. previa, ticket o colección
|
-- Comprobamos si es una prep. previa, ticket o colección
|
||||||
IF (SELECT TRUE FROM saleGroup sg WHERE sg.id = vParam) THEN
|
IF (SELECT TRUE FROM saleGroup WHERE id = vParam) THEN
|
||||||
CALL saleGroup_setParking(vParam, vParkingFk);
|
CALL saleGroup_setParking(vParam, vParkingFk);
|
||||||
ELSEIF (SELECT TRUE FROM ticket WHERE id = vParam shipped >= vLastWeek) THEN
|
ELSEIF (SELECT TRUE FROM ticket WHERE id = vParam AND shipped >= vLastWeek) THEN
|
||||||
CALL ticket_setParking(vParam, vParkingFk);
|
CALL ticket_setParking(vParam, vParkingFk);
|
||||||
ELSEIF (SELECT TRUE FROM `collection` WHERE id = vParam AND created >= vLastWeek) THEN
|
ELSEIF (SELECT TRUE FROM `collection` WHERE id = vParam AND created >= vLastWeek) THEN
|
||||||
CALL collection_setParking(vParam, vParkingFk);
|
CALL collection_setParking(vParam, vParkingFk);
|
||||||
|
|
Loading…
Reference in New Issue