From c02b99d5a539a8258d93bebaf204a99a40d44537 Mon Sep 17 00:00:00 2001 From: rfltdc <49040800+rfltdc@users.noreply.github.com> Date: Wed, 4 Oct 2023 09:00:48 -0300 Subject: [PATCH] =?UTF-8?q?Update=20envia=5Fpreco.json=20-=20Atualiza?= =?UTF-8?q?=C3=A7=C3=A3o=20das=20tags=20dataHoraVigenciaFinal=20e=20valor.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pdvsync/envio/envia_preco.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdvsync/envio/envia_preco.json b/pdvsync/envio/envia_preco.json index c9d580b..cf14544 100644 --- a/pdvsync/envio/envia_preco.json +++ b/pdvsync/envio/envia_preco.json @@ -1,9 +1,9 @@ { "dataHoraVigenciaInicial": "&IIF( !SuperGetMv('MV_LJCNVDA', , .F.), FwTimeStamp(3), FwTimeStamp(3,SToD(Self:oPublica['DA1_DATVIG']),Self:oPublica['DA0'][1]['DA0_HORADE']) )", - "dataHoraVigenciaFinal": "&IIF( !SuperGetMv('MV_LJCNVDA', , .F.), 9999-01-31T23:59, IIF(!Empty(Self:oPublica['DA0'][1]['DA0_DATATE']),FwTimeStamp(3,SToD(Self:oPublica['DA0'][1]['DA0_DATATE']),Self:oPublica['DA0'][1]['DA0_HORATE']),'9999-01-31T23:59') )", + "dataHoraVigenciaFinal": "&IIF( !SuperGetMv('MV_LJCNVDA', , .F.), '9999-01-31T23:59', IIF(!Empty(Self:oPublica['DA0'][1]['DA0_DATATE']),FwTimeStamp(3,SToD(Self:oPublica['DA0'][1]['DA0_DATATE']),Self:oPublica['DA0'][1]['DA0_HORATE']),'9999-01-31T23:59') )", "codigoProduto": "&IIF( !SuperGetMv('MV_LJCNVDA', , .F.), Self:oPublica['B0_COD'], Self:oPublica['DA1_CODPRO'] )", "idRetaguardaProduto": "&IIF( !SuperGetMv('MV_LJCNVDA', , .F.), Self:oPublica['B0_COD'], Self:oPublica['DA1_CODPRO'] )", - "valor": "&StrTran( cValToChar( IIF( Posicione('SB1', 1, xFilial('SB1') + Self:oPublica['DA1_CODPRO'], 'B1_PRV1') > 0, Posicione('SB1', 1, xFilial('SB1') + Self:oPublica['DA1_CODPRO'], 'B1_PRV1'), IIF( !SuperGetMv('MV_LJCNVDA', , .F.), Self:oPublica['B0_PRV1'], Self:oPublica['DA1_PRCVEN'] ) ) ) , '.', ',' )", + "valor": "&StrTran( cValToChar( IIF( Posicione('SB1', 1, xFilial('SB1') + IIF( !SuperGetMv('MV_LJCNVDA', , .F.), Self:oPublica['B0_COD'], Self:oPublica['DA1_CODPRO'] ), 'B1_PRV1') > 0, Posicione('SB1', 1, xFilial('SB1') + IIF( !SuperGetMv('MV_LJCNVDA', , .F.), Self:oPublica['B0_COD'], Self:oPublica['DA1_CODPRO'] ), 'B1_PRV1'), IIF( !SuperGetMv('MV_LJCNVDA', , .F.), Self:oPublica['B0_PRV1'], Self:oPublica['DA1_PRCVEN'] ) ) ), '.', ',' )", "precoPromocional": "&StrTran( cValToChar( IIF( !SuperGetMv('MV_LJCNVDA', , .F.), Self:oPublica['B0_PRV1'], Self:oPublica['DA1_PRCVEN'] ) ), '.', ',' )", "situacao": "&IIF( !SuperGetMv('MV_LJCNVDA', , .F.), IIF(Empty(Self:oPublica['B0_PRV1']) .Or. Self:cEvento <> '1', 0, 1), IIF(Self:cEvento == '1' .AND. Self:oPublica['DA0'][1]['DA0_ATIVO'] == '1' .AND. Self:oPublica['DA1_ATIVO'] == '1', 1, 0) )", "sincronizadoEtiquetaEletronica": 0, @@ -14,6 +14,6 @@ "idProprietario": "&LjRetComp()", "loteOrigem": "&Self:cLote", "configPSH": { - "Version": "3.0" + "Version": "3.2" } }