diff --git a/pdvsync/variaveis/PDVSYNC - Atualiza Status-{{STATUS_INTEGRACAO}}.json b/pdvsync/variaveis/PDVSYNC - Atualiza Status-{{STATUS_INTEGRACAO}}.json index 77efc7a..3c90439 100644 --- a/pdvsync/variaveis/PDVSYNC - Atualiza Status-{{STATUS_INTEGRACAO}}.json +++ b/pdvsync/variaveis/PDVSYNC - Atualiza Status-{{STATUS_INTEGRACAO}}.json @@ -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", diff --git a/pdvsync/variaveis/PDVSYNC - Atualizar status caixa-{{STATUS_INTEGRACAO}}.json b/pdvsync/variaveis/PDVSYNC - Atualizar status caixa-{{STATUS_INTEGRACAO}}.json index 5a13d7a..2e75091 100644 --- a/pdvsync/variaveis/PDVSYNC - Atualizar status caixa-{{STATUS_INTEGRACAO}}.json +++ b/pdvsync/variaveis/PDVSYNC - Atualizar status caixa-{{STATUS_INTEGRACAO}}.json @@ -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", diff --git a/pdvsync/variaveis/PDVSYNC - Atualizar status venda-{{STATUS_INTEGRACAO}}.json b/pdvsync/variaveis/PDVSYNC - Atualizar status venda-{{STATUS_INTEGRACAO}}.json index 2f8b16e..e2fc770 100644 --- a/pdvsync/variaveis/PDVSYNC - Atualizar status venda-{{STATUS_INTEGRACAO}}.json +++ b/pdvsync/variaveis/PDVSYNC - Atualizar status venda-{{STATUS_INTEGRACAO}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - BUSCAR PIS COFINS-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - BUSCAR PIS COFINS-{{LAST_CHANGE}}.json index 4fd4805..9762961 100644 --- a/pdvsync/variaveis/WTA - BUSCAR PIS COFINS-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - BUSCAR PIS COFINS-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar Clientes-{{DATAALTERACAO}}.json b/pdvsync/variaveis/WTA - Buscar Clientes-{{DATAALTERACAO}}.json index 8cbfb7e..f385f33 100644 --- a/pdvsync/variaveis/WTA - Buscar Clientes-{{DATAALTERACAO}}.json +++ b/pdvsync/variaveis/WTA - Buscar Clientes-{{DATAALTERACAO}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar Estoque-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar Estoque-{{LAST_CHANGE}}.json index 03e13f2..4a9a505 100644 --- a/pdvsync/variaveis/WTA - Buscar Estoque-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar Estoque-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar Filiais Compartilhamento-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar Filiais Compartilhamento-{{LAST_CHANGE}}.json index c96b26e..e93a9aa 100644 --- a/pdvsync/variaveis/WTA - Buscar Filiais Compartilhamento-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar Filiais Compartilhamento-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar Filiais Lojas-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar Filiais Lojas-{{LAST_CHANGE}}.json index 96f5129..a5a5bd5 100644 --- a/pdvsync/variaveis/WTA - Buscar Filiais Lojas-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar Filiais Lojas-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar ICMS-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar ICMS-{{LAST_CHANGE}}.json index 93099a5..8cd0fbd 100644 --- a/pdvsync/variaveis/WTA - Buscar ICMS-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar ICMS-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar Imposto NCM PDV-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar Imposto NCM PDV-{{LAST_CHANGE}}.json index fd2acc2..8f7808b 100644 --- a/pdvsync/variaveis/WTA - Buscar Imposto NCM PDV-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar Imposto NCM PDV-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar Operadora PDV-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar Operadora PDV-{{LAST_CHANGE}}.json index ffdf4cc..f6aad94 100644 --- a/pdvsync/variaveis/WTA - Buscar Operadora PDV-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar Operadora PDV-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar Preco Produto-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar Preco Produto-{{LAST_CHANGE}}.json index 2c906b5..cd289ab 100644 --- a/pdvsync/variaveis/WTA - Buscar Preco Produto-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar Preco Produto-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar Produto PDV-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar Produto PDV-{{LAST_CHANGE}}.json index 607a59d..c7cd557 100644 --- a/pdvsync/variaveis/WTA - Buscar Produto PDV-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar Produto PDV-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar Usuario Operador-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar Usuario Operador-{{LAST_CHANGE}}.json index 09fe372..71d3d95 100644 --- a/pdvsync/variaveis/WTA - Buscar Usuario Operador-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar Usuario Operador-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar planos de pgto-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar planos de pgto-{{LAST_CHANGE}}.json index 5d35eba..4da6e16 100644 --- a/pdvsync/variaveis/WTA - Buscar planos de pgto-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar planos de pgto-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar status pedido-{{DATAALTERACAO}}.json b/pdvsync/variaveis/WTA - Buscar status pedido-{{DATAALTERACAO}}.json index fdfcc01..5393cbb 100644 --- a/pdvsync/variaveis/WTA - Buscar status pedido-{{DATAALTERACAO}}.json +++ b/pdvsync/variaveis/WTA - Buscar status pedido-{{DATAALTERACAO}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Buscar tipos cobrancas-{{LAST_CHANGE}}.json b/pdvsync/variaveis/WTA - Buscar tipos cobrancas-{{LAST_CHANGE}}.json index 2c08a62..fb6ace7 100644 --- a/pdvsync/variaveis/WTA - Buscar tipos cobrancas-{{LAST_CHANGE}}.json +++ b/pdvsync/variaveis/WTA - Buscar tipos cobrancas-{{LAST_CHANGE}}.json @@ -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", diff --git a/pdvsync/variaveis/WTA - Consulta RCA-{{LASTCHANGE}}.json b/pdvsync/variaveis/WTA - Consulta RCA-{{LASTCHANGE}}.json index 29a47de..b293260 100644 --- a/pdvsync/variaveis/WTA - Consulta RCA-{{LASTCHANGE}}.json +++ b/pdvsync/variaveis/WTA - Consulta RCA-{{LASTCHANGE}}.json @@ -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",