Skip to content

Fix municipal service-code semantics - #89

Merged
vitormattos merged 1 commit into
mainfrom
fix/municipal-service-code-semantics
Oct 7, 2026
Merged

vitormattos merged 1 commit into
mainfrom
fix/municipal-service-code-semantics

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Closes #88.

The previous contract fix correctly enforced 9 digits but incorrectly described the value as NBS.

Official NFS-e municipal-panel documentation defines the municipal-parameters service code as:

  • 6-digit national service code;
  • plus 3-digit municipal subdivision;
  • 000 when there is no municipal subdivision.

This PR keeps the 9-digit validation, fixes the semantics/documentation, and updates tests to use 010101000.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit 34e3779 into main Oct 7, 2026
11 checks passed
@vitormattos
vitormattos deleted the fix/municipal-service-code-semantics branch October 7, 2026 00:02
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.

Correct municipal parameters 9-digit service-code semantics

1 participant