Documentação Geral
Motor de cálculo – Nova marcação “trocaValorVProd”
- Todos os campos que começam com “v”;
- Campo qBCMonoReten;
- No campo infAdProd, as seguintes marcações:
- Todos os campos que começam com “v”,
- Valor do ICMS Substituicao,
- Base do ICMS Substituicao,
- Valor do FCP Substituicao,
- “valor_aproximado_tributos_estaduais”
- “valor_aproximado_tributos_federais”;
- Marcações de exceção a seguir:
- “nvProduni”,
- “nvProduniPC”,
- “bcICMSDeson”,
- “bc_difal”,
- “bcICMSSN”,
- “bc_icms_antecipacao”.
- All tags that start with the letter “v”;
- “qBCMonoReten” tags;
- In the “infAdProd” field, the following tags:
- All tags that start with the letter “v”,
- “ICMS Substituicao” value,
- “ICMS Substituicao” calculation base,
- “FCP Substituicao” value,
- “valor_aproximado_tributos_estaduais” field
- “valor_aproximado_tributos_federais” field;
- The following exception tags:
- “nvProduni”,
- “nvProduniPC”,
- “bcICMSDeson”,
- “bc_difal”,
- “bcICMSSN”,
- “bc_icms_antecipacao”.
Nova marcação “trocaValorVProd”
Por Carlos Dupim Jr.
A partir de pedido realizado por cliente em GLPI, foi implementada nova marcação “trocaValorVProd” no retorno do motor de cálculo.
Se enviada no genérico do cabeçalho a marcação "trocaValorVProd" com valor igual a 1, ou seja, "trocaValorVProd" = 1, substitui para 0.00 o valor dos seguintes campos.
Segue a relação dos campos começados com “v” que devem retornar com 0.00:
No bloco do ICMS:
<a:vBC></a:vBC>
<a:vICMS></a:vICMS>
<a:vBCFCP></a:vBCFCP>
<a:vFCP></a:vFCP>
<a:vBCST></a:vBCST>
<a:vBCFCPST></a:vBCFCPST>
<a:vFCPST></a:vFCPST>
No bloco do IPI:
<a:vBC></a:vBC>
<a:vIPI></a:vIPI>
No bloco do PIS:
<a:vBC></a:vBC>
<a:vPIS></a:vPIS>
No bloco do COFINS:
<a:vBC></a:vBC>
<a:vCOFINS></a:vPIS>
Segue exemplo da marcação em ação:
Lembrando que os demais campos não afetados pela marcação retornam os valores originais da regra.
Assim, atende à operação indicada pelo cliente, mas vale lembrar que é algo que todos os clientes podem usar, caso verifiquem a necessidade.
New “trocaValorVProd” tag
By Carlos Dupim Jr.
After a request from a client in a GLPI, we implemented a new tag called “trocaValorVProd” to the Systax engine return.
If the “trocaValorVProd” is present on the generic field of the request call, with its value equal to one (“trocaValorVProd = 1”), then the following fields will return with value equal to 0.00:
Here’s the list of tags that start with the letter “v”, that must return with the 0.00 value:
In the ICMS block:
<a:vBC></a:vBC>
<a:vICMS></a:vICMS>
<a:vBCFCP></a:vBCFCP>
<a:vFCP></a:vFCP>
<a:vBCST></a:vBCST>
<a:vBCFCPST></a:vBCFCPST>
<a:vFCPST></a:vFCPST>
In the IPI block:
<a:vBC></a:vBC>
<a:vIPI></a:vIPI>
In the PIS block:
<a:vBC></a:vBC>
<a:vPIS></a:vPIS>
In the COFINS block:
<a:vBC></a:vBC>
<a:vCOFINS></a:vPIS>
Here’s an example of the “trocaValorVProd” tag in action:
The remaining Fields are not affected by the new tag and must return the original values from the rules.
This way, we answer to the request from the client, but it’s worth noting that it’s something that all clients can use, if they see the need.
Versão do documento: 79 | Publicação: 11/29/2024 |