Skip to content

Commit

Permalink
ajustes nas URLS de SVC-AN homologação e remoção do uso do indDeduzDeson
Browse files Browse the repository at this point in the history
  • Loading branch information
robmachado committed Apr 13, 2024
1 parent dcc97dc commit fc706bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
20 changes: 5 additions & 15 deletions src/Make.php
Original file line number Diff line number Diff line change
Expand Up @@ -3423,9 +3423,7 @@ public function tagICMS(stdClass $std): DOMElement
}
break;
case '20':
if (!empty($std->indDeduzDeson)) {
$this->stdTot->vICMSDeson += (float)!empty($std->vICMSDeson) ? $std->vICMSDeson : 0;
}
$this->stdTot->vICMSDeson += (float)!empty($std->vICMSDeson) ? $std->vICMSDeson : 0;
$this->stdTot->vBC += (float) !empty($std->vBC) ? $std->vBC : 0;
$this->stdTot->vICMS += (float) !empty($std->vICMS) ? $std->vICMS : 0;
$this->stdTot->vFCP += (float) !empty($std->vFCP) ? $std->vFCP : 0;
Expand Down Expand Up @@ -3527,9 +3525,7 @@ public function tagICMS(stdClass $std): DOMElement
);
break;
case '30':
if (!empty($std->indDeduzDeson)) {
$this->stdTot->vICMSDeson += (float)!empty($std->vICMSDeson) ? $std->vICMSDeson : 0;
}
$this->stdTot->vICMSDeson += (float)!empty($std->vICMSDeson) ? $std->vICMSDeson : 0;
$this->stdTot->vBCST += (float) !empty($std->vBCST) ? $std->vBCST : 0;
$this->stdTot->vST += (float) !empty($std->vICMSST) ? $std->vICMSST : 0;
$this->stdTot->vFCPST += (float) !empty($std->vFCPST) ? $std->vFCPST : 0;
Expand Down Expand Up @@ -3640,9 +3636,7 @@ public function tagICMS(stdClass $std): DOMElement
case '40':
case '41':
case '50':
if (!empty($std->indDeduzDeson)) {
$this->stdTot->vICMSDeson += (float)!empty($std->vICMSDeson) ? $std->vICMSDeson : 0;
}
$this->stdTot->vICMSDeson += (float)!empty($std->vICMSDeson) ? $std->vICMSDeson : 0;
$icms = $this->dom->createElement("ICMS40");
$this->dom->addChild(
$icms,
Expand Down Expand Up @@ -4021,9 +4015,7 @@ public function tagICMS(stdClass $std): DOMElement
);
break;
case '70':
if (!empty($std->indDeduzDeson)) {
$this->stdTot->vICMSDeson += (float) !empty($std->vICMSDeson) ? $std->vICMSDeson : 0;
}
$this->stdTot->vICMSDeson += (float) !empty($std->vICMSDeson) ? $std->vICMSDeson : 0;
$this->stdTot->vBC += (float) !empty($std->vBC) ? $std->vBC : 0;
$this->stdTot->vICMS += (float) !empty($std->vICMS) ? $std->vICMS : 0;
$this->stdTot->vBCST += (float) !empty($std->vBCST) ? $std->vBCST : 0;
Expand Down Expand Up @@ -4206,9 +4198,7 @@ public function tagICMS(stdClass $std): DOMElement
);
break;
case '90':
if (!empty($std->indDeduzDeson)) {
$this->stdTot->vICMSDeson += (float) !empty($std->vICMSDeson) ? $std->vICMSDeson : 0;
}
$this->stdTot->vICMSDeson += (float) !empty($std->vICMSDeson) ? $std->vICMSDeson : 0;
$this->stdTot->vBC += (float) !empty($std->vBC) ? $std->vBC : 0;
$this->stdTot->vICMS += (float) !empty($std->vICMS) ? $std->vICMS : 0;
$this->stdTot->vBCST += (float) !empty($std->vBCST) ? $std->vBCST : 0;
Expand Down
12 changes: 6 additions & 6 deletions storage/wsnfe_4.00_mod55.xml
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@
<UF>
<sigla>SVCAN</sigla>
<homologacao>
<NfeStatusServico method="nfeStatusServicoNF" operation="NFeStatusServico4" version="4.00">https://hom.svc.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx</NfeStatusServico>
<NfeAutorizacao method="nfeAutorizacaoLote" operation="NFeAutorizacao4" version="4.00">https://hom.svc.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx</NfeAutorizacao>
<NfeConsultaProtocolo method="nfeConsultaNF" operation="NFeConsultaProtocolo4" version="4.00">https://hom.svc.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx</NfeConsultaProtocolo>
<NfeInutilizacao method="nfeInutilizacaoNF" operation="NFeInutilizacao4" version="4.00"></NfeInutilizacao>
<NfeRetAutorizacao method="nfeRetAutorizacaoLote" operation="NFeRetAutorizacao4" version="4.00">https://hom.svc.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx</NfeRetAutorizacao>
<RecepcaoEvento method="nfeRecepcaoEvento" operation="NFeRecepcaoEvento4" version="1.00">https://hom.svc.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx</RecepcaoEvento>
<NfeStatusServico method="nfeStatusServicoNF" operation="NFeStatusServico4" version="4.00">https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx</NfeStatusServico>
<NfeAutorizacao method="nfeAutorizacaoLote" operation="NFeAutorizacao4" version="4.00">https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx</NfeAutorizacao>
<NfeConsultaProtocolo method="nfeConsultaNF" operation="NFeConsultaProtocolo4" version="4.00">https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx</NfeConsultaProtocolo>
<NfeInutilizacao method="nfeInutilizacaoNF" operation="NFeInutilizacao4" version="4.00">https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx</NfeInutilizacao>
<NfeRetAutorizacao method="nfeRetAutorizacaoLote" operation="NFeRetAutorizacao4" version="4.00">https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx</NfeRetAutorizacao>
<RecepcaoEvento method="nfeRecepcaoEvento" operation="NFeRecepcaoEvento4" version="1.00">https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx</RecepcaoEvento>
<NfeConsultaCadastro method="consultaCadastro4" operation="CadConsultaCadastro4" version="2.00"></NfeConsultaCadastro>
</homologacao>
<producao>
Expand Down

0 comments on commit fc706bd

Please sign in to comment.