Skip to content

feat: fix XML element ordering and add totalTributosPercentual fields#14

Merged
vitormattos merged 4 commits intomainfrom
feat/xml-element-order-and-totais-tributos
Apr 1, 2026
Merged

feat: fix XML element ordering and add totalTributosPercentual fields#14
vitormattos merged 4 commits intomainfrom
feat/xml-element-order-and-totais-tributos

Conversation

@vitormattos
Copy link
Copy Markdown
Member

Summary

  • DpsData: add totalTributosPercentualFederal, totalTributosPercentualEstadual, totalTributosPercentualMunicipal string fields to carry estimated tax percentages from settings into the DPS payload.
  • XmlBuilder: fix element ordering to match SEFIN validator expectations — tpAmb, dhEmi, verAplic, serie, nDPS, dCompet, tpEmit, cLocEmi now precede prest; extract buildServico() and buildValores() methods; replace cMun with cLocEmi (only cLocEmi required by schema); add conditional trib block with tribMun, tribFederal, and totTrib sub-elements.
  • Tests: update XmlBuilder tests to assert the new element order and methods; fix NfseClient test to assert cLocEmi instead of the removed cMun element.

Related

Module counterpart tracked in LibreCodeCoop/akaunting-nfse.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
… methods

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 a7e8d62 into main Apr 1, 2026
10 checks passed
@vitormattos vitormattos deleted the feat/xml-element-order-and-totais-tributos branch April 1, 2026 21:04
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