Skip to content

feat: add document-backed deduction support - #76

Merged
vitormattos merged 1 commit into
mainfrom
feat/document-backed-deductions
Oct 4, 2026
Merged

vitormattos merged 1 commit into
mainfrom
feat/document-backed-deductions

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Completes the document-backed portion of #55.

Summary

  • add typed references for every TCDocDedRed identity choice
  • add document-backed deduction entries with official type/date/value constraints
  • support optional supplier identity/name using the optional fornec group
  • enforce vDeducaoReducao <= vDedutivelRedutivel
  • enforce the tpDedRed=99 description rule
  • cap the official document list at 1000 entries
  • validate a representative document-backed payload against the vendored official XSD 1.01

Together with #75, this covers standard pDR/vDR, document-backed deductions/reductions, and municipal benefit BM without changing ordinary DPS defaults.

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