Skip to content

fix: align DANFSe v2 output with production layout - #91

Merged
vitormattos merged 2 commits into
mainfrom
fix/danfse-v2-production-parity
Oct 7, 2026
Merged

vitormattos merged 2 commits into
mainfrom
fix/danfse-v2-production-parity

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Summary

Aligns the generated DANFSe v2 and DPS payload with the current national production layout observed in the official NFS-e output and NT 008.

Changes

  • support optional provider phone/e-mail in the DPS
  • render municipality/environment, emitter, status and purpose metadata
  • use the official Contribuições Sociais - Retidas wording and retention description
  • keep the IBS/CBS section visible in DANFSe v2 even when the authorized XML has no IBSCBS group, using - for unavailable fields
  • expose IBS/CBS totals in the total-value block
  • move approximate tax disclosure into Informações Complementares
  • derive the displayed IBS/CBS exclusion/reduction amount only from already-authorized ISS/PIS/COFINS values; authorized IBS/CBS totals remain authoritative

Evidence

Compared against a real production NFS-e/DANFSe generated by the national emitter (DANFSe v2) and the current NT 008 requirements.

No merge requested.

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 260ce28 into main Oct 7, 2026
11 checks passed
@vitormattos
vitormattos deleted the fix/danfse-v2-production-parity branch October 7, 2026 21:46
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