feat: considera caracteres alfanuméricos ao calcular digito verificado da chave de acesso#1687
Merged
joaovictorjs merged 4 commits intoZeusAutomacao:masterfrom Mar 25, 2026
Merged
Conversation
78e1f2f to
dfef3a7
Compare
dfef3a7 to
ebfa907
Compare
Member
Valmir-Cunha
requested changes
Mar 24, 2026
Valmir-Cunha
requested changes
Mar 25, 2026
Valmir-Cunha
approved these changes
Mar 25, 2026
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.

As alterações realizadas no arquivo ChaveFiscal.cs têm como objetivo adaptar o cálculo do dígito verificador (DV) da chave fiscal para suportar CNPJs alfanuméricos. Anteriormente, o cálculo utilizava Convert.ToInt32() e aceitava apenas caracteres numéricos; agora, foi introduzido o método ObterValorDoCaracter, que converte qualquer caractere para seu valor numérico via subtração pelo código ASCII de '0' (48), tornando o processamento compatível com letras e números.