fix/chave-fiscal-cnpj-alfanumerico#165
Open
WiKira wants to merge 1 commit into
Open
Conversation
Ajusta chave fiscal para CNPJ alfanumérico Contexto: A geração da chave fiscal apresentava erro quando o CNPJ do emitente continha caracteres alfanuméricos, pois o cálculo do dígito verificador tentava converter cada caractere da chave diretamente para inteiro. Ajustado o cálculo do dígito verificador para utilizar o valor do caractere, seguindo a implementação já existente no projeto Zeus. Também foi incluído o preenchimento à esquerda do CNPJ do emitente quando ele possuir menos de 14 posições. Esperado: Permitir a geração da chave fiscal com CNPJ alfanumérico no emitente; Manter o comportamento atual para CNPJs exclusivamente numéricos.
Collaborator
|
Conseguiram testar a emissão de um NFe com Emitente de Cnpj Alfanumérico? |
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.
fix/chave-fiscal-cnpj-alfanumerico
Ajusta chave fiscal para CNPJ alfanumérico
Contexto: A geração da chave fiscal apresentava erro quando o CNPJ do emitente continha caracteres alfanuméricos, pois o cálculo do dígito verificador tentava converter cada caractere da chave diretamente para inteiro.
Ajustado o cálculo do dígito verificador para utilizar o valor do caractere, seguindo a implementação já existente no projeto Zeus.
Também foi incluído o preenchimento à esquerda do CNPJ do emitente quando ele possuir menos de 14 posições.
Esperado: