Comments (4)
Rafael, eu vi sua alteração.
Mas creio que ainda assim vai dar erro.
FIcou assim: "chaveRPS.AddChild(AdicionarTag(TipoCampo.Str, "", "SerieRPS", 1, 5, Ocorrencia.NaoObrigatoria, nota.IdentificacaoRps.Serie));"
Creio que deva passar o parâmetro "min" como '0' e não '1', pois senão vai cair na validação desse if :
"
if (!conteudoProcessado.IsEmpty() && conteudoProcessado.Length < min && alerta.IsEmpty() && conteudoProcessado.Length > 1)
{
alerta = ErrMsgMenor;
}
"
Porque o valor de Série passado será nulo ou '' e cairá nessa validação "conteudoProcessado.Length < min", gerando erro.
from openac.net.nfse.
isso não é erro é um warning apenas
from openac.net.nfse.
Ah sim, verdade. vlw
from openac.net.nfse.
Nesse mesmo ProviderSaoPaulo.cs, no método GetHashRps, ele tenta usar o campo Série, se tiver nulo vai quebrar.
Precisa por um tratamento nesse caso "nota.IdentificacaoRps.Serie.PadRight(5, ' ')".
string hash = nota.Prestador.InscricaoMunicipal.PadLeft(8, '0') +
nota.IdentificacaoRps.Serie.PadRight(5, ' ') +
nota.IdentificacaoRps.Numero.PadLeft(12, '0') +
nota.IdentificacaoRps.DataEmissao.Year.ToString().PadLeft(4, '0') +
nota.IdentificacaoRps.DataEmissao.Month.ToString().PadLeft(2, '0') +
nota.IdentificacaoRps.DataEmissao.Day.ToString().PadLeft(2, '0') +
tipoTributacao +
situacao +
issRetido +
Convert.ToInt32(nota.Servico.Valores.ValorServicos * 100).ToString().PadLeft(15, '0') +
Convert.ToInt32(nota.Servico.Valores.ValorDeducoes * 100).ToString().PadLeft(15, '0') +
nota.Servico.ItemListaServico.PadLeft(5, '0') +
indCpfCnpjTomador +
nota.Tomador.CpfCnpj?.PadLeft(14, '0');
from openac.net.nfse.
Related Issues (20)
- Arquivo de Schema não encontrado HOT 9
- Adicionar Piracicaba como município aceito HOT 1
- Incluir Município pra uso da Biblioteca HOT 4
- PDF NFSE HOT 2
- Documentação HOT 2
- Erro no NFSe HOT 2
- Erro no EnviarLoteRPS do Sigiss HOT 2
- The requested security protocol is not supported HOT 3
- Provedor Americana HOT 3
- Não está funcionando o upload rest no provedor IPM v2 HOT 1
- Crash no provedor IPM HOT 1
- É possível voltar a compilar o projeto em .net 4.5.2 ? HOT 3
- The format of value 'text/xml; charset=utf-8' is invalid.
- Erro ao executar pela segunda vez HOT 1
- Erro no provedor IPM HOT 4
- Erro ao compilar -> faltou add resource HOT 1
- System.TypeInitializationException: Ao alterar o webservice de uma cidade HOT 3
- Continua sem o arquivo do ginfes HOT 2
- Adição de tabela para listar provedores de NFS-e e suas cidades HOT 1
- Erro envio IISnet HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openac.net.nfse.