Repository navigation
fix: Adiciona eventos 610610 (MDF-e Autorizado) e 610611 (MDF-e Cancelado) ao NFeTipoEvento - #206
Merged
adrbarros merged 1 commit intoNov 5, 2026
Conversation
…lado) ao NFeTipoEvento
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.
Mesmo problema do #205, agora para o MDF-e.
Quando uma NF-e é vinculada a um MDF-e, o Ambiente Nacional registra na NF-e o evento 610610 ("MDF-e Autorizado"), e 610611 ("MDF-e Cancelado") se o MDF-e for cancelado depois. Esses eventos voltam no
procEventoNFedoretConsSitNFe(e também na distribuição DF-e), mas o enumNFeTipoEventonão tinha esses valores, então a desserialização quebra com:Mudanças
NFeTipoEvento: adicionadosTeNfeMDFeAutorizado(610610) eTeNfeMDFeCancelado(610611), logo depois dos eventos de CT-e do fix: Adiciona eventos 610600 (CT-e Autorizado) e 610601 (CT-e Cancelado) ao NFeTipoEvento #205.NFe.Utils.Testes/Consulta/RetConsSitNFeEventosMDFeTestes.cs, que desserializa umretConsSitNFecomprocEventoNFede cada evento. Para não duplicar o XML de exemplo, o helperMontarRetConsSitNFedo teste de CT-e passou deprivateparainternale é reaproveitado.Testes
NFe.Utils.Testes: as 6 falhas restantes por framework (URLs SVRS de autorização e QR Code) já existem no master e não têm relação com esta mudança.