Documentação Geral

Motor de cálculo – Retorno da marcação “vigate” no campo genérico do response da chamada


     

    Retorno da marcação “vigate” no campo genérico do response da chamada

    Por Henrique Moreira

     

    Nas operações onde o motor de cálculo realiza a busca de registros na tabela do cockpit “complemento de informações no retorno”, no response, no campo genérico retornamos a marcação “vigate”, para indicar a data de vigência indicada na coluna “vig. Ate” do registro encontrado.

    Entretanto, para os registros encontrados que não tinham esse campo preenchido, retornávamos a marcação com a indicação “vazio”, ficando a marcação “vigate=vazio”, e com isso, tínhamos impacto negativo nos ERP de clientes que usam essa informação esperando receber um valor de “data” nessa marcação.

    Para resolver, implementamos uma alteração, para que sempre que para os registros que não tem vigência, retornar a marcação “vigate=9999-12-31”, conforme exemplo abaixo:

     

    Registro da tabela aplicado no retorno:

     

     

    Marcação no campo “genérico” da response:

     


     

    Return of the “vigate” marker in the generic field of the response

    By Henrique Moreira

     

    In operations where the Systax engine searches for records in the “return information complement” table on the cockpit, when looking at the response, in the generic field, we return the “vigate” marker to indicate the end of validity date specified in the “vig. Ate” column of the found record.


    However, for records that did not have this field filled, we returned the marker with the indication “empty,” resulting in the marker “vigate=empty.” This had a negative impact on ERP systems of clients who use this information expecting to receive a “date” value in this marker.


    To resolve this, we implemented a change so that for records without end of validity date, the marker “vigate=9999-12-31” is returned, as shown in the example below:

    Record from the table applied in the return:

    Marker in the “generic” field of the response:

     

    Voltar


Versão do documento: 70 Publicação: 7/26/2024