Skip to content

feat: add standard deductions and municipal benefits - #75

Merged
vitormattos merged 2 commits into
mainfrom
feat/standard-deductions-benefits
Oct 4, 2026
Merged

vitormattos merged 2 commits into
mainfrom
feat/standard-deductions-benefits

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Advances #55.

Summary

  • model standard DPS deduction/reduction as the official pDR or vDR choice
  • model municipal benefit (BM) with official 14-digit parameter id
  • support either value or percentage base reduction for the benefit
  • serialize in the exact XSD order (vServPrest -> vDedRed -> trib, and exigSusp -> BM -> tpRetISSQN)
  • reject ambiguous combinations before transport
  • validate representative output against the vendored official XSD 1.01

Follow-up

Document-backed deduction/reduction (documentos/docDedRed) remains a separate #55 follow-up because it has its own identity/supplier structure and up to 1,000 entries. Keeping that out of this PR avoids a large DTO/XML change in one review.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit b8e1859 into main Oct 4, 2026
11 checks passed
@vitormattos
vitormattos deleted the feat/standard-deductions-benefits branch October 4, 2026 15:02
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