Repository navigation
feat(nfe): update schemas to PL_010g v1.03 (NT 2026.006 v1.00, NT 2026.008 v1.00) - #176
Merged
Merged
Conversation
Update the NFe schemas from the Fazenda package nº 010g v1.03 (zip contents PL_010g_v1.03), published 26/10/2026 (ref. NT 2026.006 v1.00 and NT 2026.008 v1.00). Source: https://www.nfe.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=EQhOQMgipXY= Changed schemas: DFeTiposBasicos_v1.00.xsd, leiauteNFe_v4.00.xsd. Notable schema changes: - DFeTiposBasicos: the TRBSN simple type is dropped and the RTC groups in TCIBS_NFe no longer offer the gIBSCBS/gIBSCBSMono choice, so gIBSCBS becomes a plain optional element; the new TPgtoVinc type models the payment-link information (gPgto/nPag/idTransacao); - leiauteNFe: det/prod gains the optional vUnComLiq/vProdLiq sequence (net value without taxes), the ICMS choice gains ICMSPrevistoPagtoAntecip (vICMSPrevisto), total gains vProdLiqTot, infNFe gains the optional gPgtoVinc group, and the NFC-e QR-code patterns are reordered (no semantic change). Regenerate the bindings with xsdata 25.7 and refresh the fingerprint baseline (the nfe page change is this package; the cte entry is a page-text only change, its 47 XSDs are byte-identical to the committed ones).
CHANGELOG_SCHEMAS.md now carries, for the PL_010g package, the date from which production validates it (production_live_from 2026-12-14, moved from 16/11/2026 by the SVRS notice of 12/11/2026) and whether XML valid under PL_010f stays valid (additive: true). additive is read mechanically: the package only drops the unused TRBSN simple type and the gIBSCBSMono alternative of TTribNFCe, a type the NF-e layout does not reference (it uses TTribNFe), so no instance of the previous layout is rejected. generate_bindings.py parses the two new fields and injects PRODUCTION_LIVE_FROM, ADDITIVE and NOTES in the binding __init__.py header, refreshed here with --metadata-only (no binding code changed).
Both listing pages changed since the last capture. The NF-e page now lists the 010h package (same hash the 010h branch recorded), and the CT-e page gained the 11/11/2026 republications of NT 2026.004 and the new NT 2026.005 RTC-SN package, which the CT-e schema work will pick up separately. The fingerprint test only runs on Python 3.13, so this is the value that job compares against.
rvalyi
force-pushed
the
nfe-pl_010g_v1_03
branch
from
December 5, 2026 15:46
8f4cf7e to
f9bd5d1
Compare
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.
Update the NFe schemas from the Fazenda package nº 010g v1.03 (zip contents
PL_010g_v1.03), published 26/10/2026, following NT 2026.006 v1.00 and NT 2026.008 v1.00.Source: https://www.nfe.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=EQhOQMgipXY=
Changed XSDs:
DFeTiposBasicos_v1.00.xsd,leiauteNFe_v4.00.xsd(the other files of the package are byte-identical to the committed ones).Schema changes:
TRBSNsimple type is dropped; the RTC groups inTCIBS_NFeno longer offer thegIBSCBS/gIBSCBSMonochoice, sogIBSCBSbecomes a plain optional element; the newTPgtoVinctype models the payment-link information (gPgto/nPag/idTransacao).det/prodgains the optionalvUnComLiq/vProdLiqsequence (net value without taxes); the ICMS choice gainsICMSPrevistoPagtoAntecip(vICMSPrevisto);totalgainsvProdLiqTot;infNFegains the optionalgPgtoVincgroup; the NFC-e QR-code patterns are only reordered (no semantic change).Bindings regenerated with xsdata 25.7,
CHANGELOG_SCHEMAS.mdrecords the new package, and the metadata innfe/bindings/v4_0/__init__.pyis refreshed.Fingerprint baseline: the
nfeentry is this package. Thecteentry is refreshed too, but it is a false positive — the CT-e page text changed while its 47 committed XSDs are byte-identical to the newest package (PL_CTe_400_NT2026.004 RTC_1.00, republicado 16/10/2026), so no CT-e schema change is needed.Local:
pytest tests→ 89 passed, 3 skipped; pre-commit hooks pass.