Skip to content

fix: treat vRetCSLL as CSLL only - #94

Merged
vitormattos merged 4 commits into
mainfrom
fix/csll-retention-semantics
Oct 8, 2026
Merged

vitormattos merged 4 commits into
mainfrom
fix/csll-retention-semantics

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Summary

Aligns vRetCSLL with the bundled official NFS-e schema, where the field is the monetary value of CSLL only.

Changes:

  • documents federalValorCsll as CSLL retention, not aggregate social contributions
  • exposes the DANFSe field as CSLL - Retida
  • renames the internal DANFSe data key from contribuicoes_sociais to csll
  • replaces the contradictory golden test that combined tpRetPisCofins = 4 (CSLL not retained) with a non-zero vRetCSLL

This complements the Akaunting module fix so PIS/COFINS are no longer written into vRetCSLL.

Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
@vitormattos
vitormattos merged commit f179d7f into main Oct 8, 2026
11 checks passed
@vitormattos
vitormattos deleted the fix/csll-retention-semantics branch October 8, 2026 13:33
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