Documentação Geral

API – API Online (on demand) – Operação com ativo e consumo


     

    API Online (on demand) – Operação com ativo e consumo

    Por Fernanda Penhorate

     

    As operações com produtos destinados ao ativo imobilizado e material de uso e consumo podem possuir tributação diferenciada de acordo com cada UF.

    Para isso, o produto precisa receber a indicação de que deverá ser aplicada para esses fins, mas para que não tenhamos uma duplicação de todos os produtos da Base Centralizada e das bases de demais projetos para incluir na configuração os IDs Produto correspondentes, é indicado no cenário o ID Produto a qual o produto está designado naquela operação, no campo “Config Produto adicional”.

    Dessa forma, apenas para realizar o cálculo daquele cenário, o produto recebe esse ID Produto adicional, trazendo o retorno correto para a operação de ativo ou uso e consumo (entre outras operações que podem usar essa tratativa).

    Ocorre que o cálculo de regra realizado pela API Online (on demand) quando não configurado para olhar para a base cenários, não sabia da necessidade da inclusão desse ID Produto nessas operações para que realizasse o cálculo correto.

    Para resolver isso, fizemos a seguinte implementação:

    Sempre que a natureza de operação enviada na chamada da API for ‘145' ou '147' ou '747', será incluído, no momento exclusivo desse cálculo, nos produtos configurados o ID 6009 (Ativo imobilizado).

    Ou sempre que a natureza de operação for ‘'148' ou '502', o ID a ser incluído é o 6010.

    Assim, havendo tributação diferenciada para essas operações o cálculo on demand atenderá corretamente.

     


     

    Online API (on demand) – Operations with fixed assets and consumption goods

    By Fernanda Penhorate

     

    The operations with products destined as a fixed asset or material for use and consumption can have a differentiated taxation, according to each state.

    For that, the products need to receive an indication that it must be used for those ends described beforehand.

    So that we don’t have a duplication of all the products on the Centralized Base and on the product bases of other projects, in order to include the corresponding product IDs in the configuration, we indicate in the operation scenario instead which product ID is designed for that operation, in the “Config Produto adicional” field.

    That way, in order to only perform the calculation of that scenario, the product receives this additional product ID in its configuration, bringing the correct return for the operations with fixed assets or goods for use and consumption (among other operations that may also have this treatment).

    It so happens that, in the calculation performed by the Online API (on demand), when not configured to look at the scenarios from the Centralized Base, didn’t note the requirement of including the additional product ID on the operations in order to perform the correct calculation.

    To solve that, the following implementation has been made:

    Whenever the Operation Nature send on the API’s request call is ‘145’ or ‘147’ or ‘747’, it will be included, in the exclusive moment of this calculation, in the configured products, the product ID 6009 – fixed asset.

    Or whenever the Operation Nature is ‘148’ or ‘502’, the additional ID included will be the 6010.

    This way, we have the differentiated taxation for these operations on the on demand calculation, delivering the correct results.

    Voltar


Versão do documento: 74 Publicação: 9/20/2024