Skip to content

[codex] fix emission signature placement#6

Merged
upsetbit merged 1 commit into
masterfrom
codex/fix-emissao-signature-container
Jun 7, 2026
Merged

[codex] fix emission signature placement#6
upsetbit merged 1 commit into
masterfrom
codex/fix-emissao-signature-container

Conversation

@upsetbit

@upsetbit upsetbit commented Jun 7, 2026

Copy link
Copy Markdown
Member

Summary

  • sign InfDeclaracaoPrestacaoServico but emit <Signature> as the next sibling inside the enclosing <Rps> container
  • keep cancellation using the existing nested signature behavior
  • document the Franco da Rocha 2025 ABRASF schema behavior in the local nf skills

Root cause

Homologation rejected GerarNfse because the emitted XML placed <Signature> inside <InfDeclaracaoPrestacaoServico>. The current municipal schema expects the emission signature at the declaration container level, after InfDeclaracaoPrestacaoServico.

Validation

  • go test ./internal/xmlsig ./internal/service
  • go test ./...
  • go test ./... -race -coverprofile=coverage.out
  • go vet ./...
  • go mod tidy && git diff --exit-code go.mod go.sum
  • live homologation smoke: go run ./cmd/nfe emit mova --wait-timeout 90s succeeded for RPS 36

@upsetbit upsetbit merged commit fccece7 into master Jun 7, 2026
2 checks passed
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