Skip to content

Commit

Permalink
Merge pull request #70 from totvs/feature/DDWMISSI-234-AjustarLastChange
Browse files Browse the repository at this point in the history
DDWMISSI-234 - Ajustar LastChange da PCINTEGRACAOCORE quando modificar também os status 11,12 e 13
  • Loading branch information
beatriz-menezes authored Jul 9, 2024
2 parents 68af8a4 + f94aac2 commit 7bebc53
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT (CASE WHEN STATUS IN (1,2) THEN 1 ELSE 2 END) AS RESULT FROM PCINTEGRACAOCORE p WHERE ID = :IDINTEGRACAOCORE"
"valor": "SELECT (CASE WHEN STATUS IN (1,2,11,12,13) THEN 1 ELSE 2 END) AS RESULT FROM PCINTEGRACAOCORE p WHERE ID = :IDINTEGRACAOCORE"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT (CASE WHEN STATUS IN (1,2) THEN 1 ELSE 2 END) AS RESULT FROM PCINTEGRACAOCORE p WHERE ID = :IDINTEGRACAOCORE"
"valor": "SELECT (CASE WHEN STATUS IN (1,2,11,12,13) THEN 1 ELSE 2 END) AS RESULT FROM PCINTEGRACAOCORE p WHERE ID = :IDINTEGRACAOCORE"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT (CASE WHEN STATUS IN (1,2) THEN 1 ELSE 2 END) AS RESULT FROM PCINTEGRACAOCORE p WHERE ID = :IDINTEGRACAOCORE"
"valor": "SELECT (CASE WHEN STATUS IN (1,2,11,12,13) THEN 1 ELSE 2 END) AS RESULT FROM PCINTEGRACAOCORE p WHERE ID = :IDINTEGRACAOCORE"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS=2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS = 2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS=2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS = 2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS = 2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
2 changes: 1 addition & 1 deletion pdvsync/variaveis/WTA - Buscar ICMS-{{LAST_CHANGE}}.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS=2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS = 2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS=2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS=2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS=2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT NVL(TO_CHAR((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND status = 2),'RRRR-MM-DD\"T\"HH24:MI:SS'),'1900-01-01T00:00:00') AS DT FROM DUAL"
"valor": "SELECT NVL(TO_CHAR((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)),'RRRR-MM-DD\"T\"HH24:MI:SS'),'1900-01-01T00:00:00') AS DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS=2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS = 2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS=2), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900')) -1, 'RRRR-MM-DD\"T\"HH24:MI:SS' ) DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down
2 changes: 1 addition & 1 deletion pdvsync/variaveis/WTA - Consulta RCA-{{LASTCHANGE}}.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"nome": "VALOR",
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS = 2), TO_DATE('01/01/1900', 'DD/MM/YYYY')), 'RRRR-MM-DD\"T\"HH24:MI:SS') DT FROM DUAL"
"valor": "SELECT TO_CHAR( NVL((SELECT MAX(DATACRIACAO) FROM PCINTEGRACAOCORE WHERE IDROTASERVICO = :IDROTASERVICO AND STATUS IN (2,11,12,13)), TO_DATE('01/01/1900', 'DD/MM/YYYY')), 'RRRR-MM-DD\"T\"HH24:MI:SS') DT FROM DUAL"
},
{
"nome": "CODEMPALTER",
Expand Down

0 comments on commit 7bebc53

Please sign in to comment.