Skip to content

fix: ICMS-ST calculation - #1

Open
MrFerri wants to merge 1 commit into
sacfiscal:masterfrom
MrFerri:fix/value-icms-st
Open

fix: ICMS-ST calculation#1
MrFerri wants to merge 1 commit into
sacfiscal:masterfrom
MrFerri:fix/value-icms-st

Conversation

@MrFerri

@MrFerri MrFerri commented Oct 27, 2025

Copy link
Copy Markdown

Parameter adjusted to consider values with a reduction in the ICMS tax base.

Example, given the following:

  • Unit price: R$100.00
  • ICMS: 17%
  • ICMS reduction: 2%
  • MVA: 40%
  • ICMS ST: 17%
  • ICMS ST reduction: 0%

Thus, ICMS:

  • Reduced base: 100 × (1 − 0.02) = R$ 98.00

  • ICMS: 98 × 17% = R$ 16.66

  • ST base: 100 × (1 + 0.40) = R$ 140.00

  • “Full” ICMS-ST: 140 × 17% = R$ 23.80

  • ICMS-ST to be collected: 23.80 − ICMS (16.66) = R$ 7.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant