Skip to content

fix: align fiscal payload with production NFS-e - #343

Merged
vitormattos merged 6 commits into
mainfrom
fix/production-fiscal-parity
Oct 7, 2026
Merged

vitormattos merged 6 commits into
mainfrom
fix/production-fiscal-parity

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Summary

Production-parity corrections found by comparing the module's homologation XML/DANFSe with a real NFS-e for the same issuer/service profile.

Fiscal payload

  • publish provider phone/e-mail from Akaunting company data when available
  • brand DPS verAplic as LibreCode NFSe 1.0.0
  • use the effective ISS rate as the municipal approximate-tax fallback for non-Simples issuers when no explicit municipal approximate percentage is configured
  • keep an explicitly configured approximate municipal percentage authoritative
  • support all current official opSimpNac values: 1 non-optant, 2 MEI, 3 ME/EPP

DANFSe dependency

Production comparison

The national emitter output for the same R$ 31,500 service uses 3.65% federal / 0.00% state / 2.00% municipal approximate taxes and includes provider contact information. The module was emitting 3.65% / 0.00% / 0.00% because an unconfigured municipal approximate percentage was coerced to zero.

No merge requested.

vitormattos and others added 6 commits October 7, 2026 21:41
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
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 8b20c4d into main Oct 7, 2026
12 of 13 checks passed
@vitormattos
vitormattos deleted the fix/production-fiscal-parity branch October 7, 2026 22:22
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