Repository navigation
feat(cte): update schemas to PL_CTe_400_NT2026.005 RTC SN_1.00 - #185
Merged
Merged
Conversation
Adopts the CT-e package republished on 11/11/2026: the Simples Nacional layout of NT 2026.005 v1.00 on top of NT 2026.004 RTC v1.01. Changed XSDs: DFeTiposBasicos (TTribSN, gTribSN), cteTiposBasico (emit/tpRegimeIBSCBS, the gMultaJuros/chCTeRef group of NT 2026.004 v1.01, doc text), evApropriaCredPres (xDecPag now minOccurs=0), plus the two new event schemas evTributacaoSN and evCancTributacaoSN. The package ships cteTiposBasico with CR-only line endings; they are normalized back to CRLF so the diff stays reviewable. Additive: no declaration is removed and every addition is optional, so XML valid under NT 2026.004 RTC 1.00 stays valid. The SVRS notice of 12/11/2026 moved the NT 2026.004 and NT 2026.005 schemas to 2026-12-14, recorded in CHANGELOG_SCHEMAS.md with the package additivity; the 412140 Tributação do SN event still has no production date. Bindings regenerated with xsdata 25.7 and the metadata refreshed. Local: pytest tests -> 92 passed, 4 skipped; fingerprint (Python 3.13) and prettier pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft: o leiaute do CT-e da NT 2026.005 (Simples Nacional) ainda precisa de
revisão antes do merge. A #176 (NFe) e a #184 (NFe 010h) já entraram, então esta
PR parte da master atual.
Adota o pacote republicado em 11/11/2026:
PL_CTe_400_NT2026.005 RTC SN_1.00,que traz a NT 2026.005 v1.00 (Simples Nacional) em cima da NT 2026.004 RTC v1.01.
Schemas alterados
DFeTiposBasicos:TTribSNe o grupogTribSN(opcional);cteTiposBasico:emit/tpRegimeIBSCBS, o grupogMultaJuros/chCTeRefda NT2026.004 v1.01 e textos de documentação;
evApropriaCredPres:xDecPagpassa aminOccurs=0;evTributacaoSN_v1.00.xsdeevCancTributacaoSN_v1.00.xsd(evento412140, ainda sem data de produção).
O pacote publica o
cteTiposBasicocom fim de linha só CR; normalizo de voltapara CRLF para o diff ficar revisável.
Aditividade: o diff de declarações não remove nada e todas as inclusões são
opcionais, então XML válido no pacote anterior continua válido. Registrei no
CHANGELOG_SCHEMAS.mdcomo aditivo, com produção em 14/12/2026 (aviso SVRS de12/11/2026, que moveu as NT 2026.004 e NT 2026.005 de 16/11 para 14/12; a NT
2026.005 v1.01 só reafirma a data).
Bindings: regenerados com xsdata 25.7 (
generate_bindings.py cte), com ometadado do pacote atualizado no
__init__.py.Local:
pytest tests→ 92 passed, 4 skipped; fingerprint (Python 3.13) eprettier passam.
Falta para sair do draft: confirmar se o evento 412140 e o
gTribSNdoIBSCBSTotdo CT-e Simplificado exigem bindings de evento dedicados (como nosdemais eventos), e revisar a ordem dos grupos novos no
cteTiposBasico.