feat: refs #7686 Added new alertLevel APPROVED and changes in vn.state.alertLevel
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Guillermo Bonet 2024-08-27 12:58:08 +02:00
parent 4d820f1003
commit 070613de64
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,6 @@
UPDATE vn.alertLevel SET id = 5 WHERE id = 4;
UPDATE vn.alertLevel SET id = 4 WHERE id = 3;
UPDATE vn.alertLevel SET id = 3 WHERE id = 2;
UPDATE vn.alertLevel SET id = 2 WHERE id = 1;
INSERT INTO vn.alertLevel (code, id, hasToRecalcPrice)
VALUES ('APPROVED', 1, 1)

View File

@ -0,0 +1,21 @@
UPDATE vn.state
SET alertLevel = 1 -- APPROVED
WHERE id IN (
3, -- Ok
4 -- Impreso
);
UPDATE vn.state
SET alertLevel = 2 -- ON_PREVIOUS
WHERE id IN (
36, -- Previa Revisando
37, -- Previa Revisado
26, -- Prep Previa
28, -- Previa OK
29, -- Previa Impreso
31, -- Polizon Impreso
32, -- Polizon OK
20, -- Asignado
23, -- URGENTE
33 -- Auto_Impreso
);