Documentação Geral
Motor de Cálculo – Retorno de Pauta proporcional para medicamentos
Retorno de Pauta proporcional para medicamentos
Por Henrique Moreira
Implementamos no motor de cálculo, um novo retorno para cálculo da proporcionalidade de medicamentos.
Nas hipóteses em que o produto do cálculo contiver o campo “volume” preenchido na tabela “Produtos” do cockpit, e contiver a configuração “pautaProporcMed” ativada, o motor irá fazer o seguinte cálculo:
nova valor_pauta = pauta_regra / volume
E a partir desse novo valor de pauta, segue com os demais cálculos do motor.
Segue abaixo exemplo de retorno:
A regra do cockpit possui o valor de pauta preenchido = 94,93:
E o produto em questão possui o campo volume preenchido:
E a configuração do cockpit está ativada:
Sendo assim o motor irá considerar => nova valor_pauta = 94,93 / 4 = 23,73
Portanto para fins de cálculo, o motor considera o valor de pauta 23,73 ao invés de 94,93.
No motor, podemos ver o retorno do vBCST e vICMSST, considerando o novo valor de pauta:
OBS: A regra possui o BC 19 para o calcular
BC 19 => vBCST = qTrib * valor_pauta
BC 19 => vBCST = 3 * 23,73 = 71,20
BC 19 => vICMSST = (vBCST * (pAliq_interna / 100)) – vICMS
BC 19 => vICMSST = (71,20 * (12 / 100)) – 8,38 = 0,16
Essa implementação foi realizada para atender um retorno específico do cliente P&G, mas pode ser usada por todos ativando a configuração citada.
Isso, porque para medicamentos não conseguirmos entregar no genérico da regra a proporcionalidade igual entregamos para os demais produtos. Assim, dessa forma complementamos nosso cálculo de pauta, aplicando a proporcionalidade diretamente no motor.
Proportional tax return for medicine
by Henrique Moreira
We implemented on the Systax Engine a new return that calculates the proportional value of medicine.
In cases where the product of the calculation contains the "volume" field filled in the "products" table of the cockpit, and contains the "pautaproporcmed" configuration activated, the engine will perform the following calculation:
new “valor_pauta” = “pauta_regra” / “volume”
And from this new value of “valor_pauta”, it continues with the other engine calculations.
Here is an example of the return:
The Systax Cockpit rule has the value of “valor_pauta” = 94.93:
And the product in question has the volume field filled:
And the Systax Cockpit configuration is activated:
So, the engine will consider => new “valor_pauta” = 94.93 / 4 = 23.73
So, for calculation purposes, the engine considers the value of “valor_pauta” 23.73 instead of 94.93.
In the engine, we can see the return of “vBCST” and “vICMSST”, considering the new value of “valor_pauta”:
Note: the rule uses BC 19 to calculate.
BC 19 => vBCST = qtrib * valor_pauta
BC 19 => vBCST = 3 * 23.73 = 71.20
BC 19 => vICMSST = (vBCST * (paliq_interna / 100)) - vicms
BC 19 => vICMSST = (71.20 * (12 / 100)) - 8.38 = 0.16
This implementation was carried out to meet a specific return for the client P&G but can be used by any other clients by activating the mentioned configuration.
All this because, for medicine, we cannot deliver the proportional value on the generic area as we do with other products. Thus, with this innovation we complement our calculation, applying the proportionality directly to the Systax Engine.
Versão do documento: 57 | Publicação: 3/22/2024 |