Documentação Geral
Parametrização Fiscal – Passo D0189 – Alteração de requisitos para retorno da marcação “difereFCP”
- CST da operação for igual a 51; e
- Haver regra no cálculo que possui a marcação "difereFCP=1"; e
- Se houver retorno de valor no campo "ICMSfcp".
- The operation's CST is equal to 51; e
- There is a rule within the calculation that has the variable "difereFCP=1"; and
- If there is the return of a value in the "ICMSfcp" field.
Passo D0189 – Alteração de requisitos para retorno da marcação “difereFCP”
Por Carlos Dupim Jr.
Em análise foi verificado que o passo D0189 estava adicionando a variável difereFCP=1 em operações onde não havia Fundo De Combate à Pobreza (FCP) a ser calculado para o ICMS, o que gerou transtornos no retorno do motor.
Assim, foi realizado um ajuste para adicionar mais uma condição para o retorno dessa variável, só podendo ser inserida no cálculo quando:
Debug de exemplo:
Nesse debug, podemos ver que no passo D0008 há regra que possui a variável DifereFCP=1; no entanto, como não existe valor de FCP na operação, não retorna no campo genérico do debug.
Com essa nova condição em destaque, garantimos que a variável difereFCP só se apresenta quando de fato houver FCP, evitando erro nos blocos retornados no motor.
Step D0189 – Changes in the requirements for the return of the "difereFCP" tag
By Carlos Dupim Jr.
After an analysis, it was noted that the calculation step D0189 was adding the "difereFCP=1" tag in operations where there was no FCP (Fundo de Combate à Pobreza - Fund for Combating Poverty) to be calculated to the ICMS, which resulted in some issues with the Tax Engine.
So, an adjustment was made to add a new condition to the return of that tag, only being allowed to be inserted into the calculation when:
Here's an example:
In this preview, we can see that in the D0008 step a rule with the "difereFCP=1" variable is being used; however, since there is no actual FCP value in this operation, there isn't the return of that tag in the generic field.
With this added highlighted condition, we guarentee that the "difereFCP" tag will only present itself when there is in fact the FCP value, avoiding further errors in the Tax Engine returns.
Versão do documento: 75 | Publicação: 10/4/2024 |