Skip to content

Commit

Permalink
Merge pull request #286 from adrianotrentim/main
Browse files Browse the repository at this point in the history
Correção para base de calculo provedor IPM
  • Loading branch information
rftd authored Apr 13, 2024
2 parents ff40f6e + 615e41c commit c53f90e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenAC.Net.NFSe/Providers/IPM/ProviderIPM101.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public override string WriteXmlRps(NotaServico nota, bool identado = true, bool
AdicionarTag(TipoCampo.Str, "", "situacao_tributaria", 1, 2, Ocorrencia.Obrigatoria, "05"));
}

listaTag.AddChild(AdicionarTag(TipoCampo.Str, "", "valor_tributavel", 1, 15, Ocorrencia.Obrigatoria, FormataDecimal(nota.Servico.Valores.BaseCalculo)));
listaTag.AddChild(AdicionarTag(TipoCampo.Str, "", "valor_tributavel", 1, 15, Ocorrencia.Obrigatoria, FormataDecimal(nota.Servico.Valores.ValorLiquidoNfse)));
listaTag.AddChild(AdicionarTag(TipoCampo.Str, "", "valor_deducao", 1, 15, Ocorrencia.Obrigatoria, FormataDecimal(nota.Servico.Valores.ValorDeducoes)));
listaTag.AddChild(AdicionarTag(TipoCampo.Str, "", "valor_issrf", 1, 15, Ocorrencia.Obrigatoria, FormataDecimal(nota.Servico.Valores.IssRetido != SituacaoTributaria.Normal ? nota.Servico.Valores.ValorIss : 0)));
listaTag.AddChild(AdicionarTag(TipoCampo.Str, "", "tributa_municipio_prestador", 1, 15, Ocorrencia.Obrigatoria, nota.Servico.MunicipioIncidencia == nota.Prestador.Endereco.CodigoMunicipio ? "S" : "N"));
Expand Down Expand Up @@ -317,7 +317,7 @@ protected override void TratarRetornoConsultarLoteRps(RetornoConsultarLoteRps re

protected override void TratarRetornoCancelarNFSe(RetornoCancelar retornoWebservice, NotaServicoCollection notas)
{
var xmlRet = XDocument.Parse(retornoWebservice.XmlRetorno);
var xmlRet = XDocument.Parse(retornoWebservice.XmlRetorno.Replace("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>", ""));

var mensagens = xmlRet.Root.ElementAnyNs("mensagem");

Expand Down

0 comments on commit c53f90e

Please sign in to comment.