Skip to content

Commit

Permalink
Merge pull request #616 from joaop23/patch-1
Browse files Browse the repository at this point in the history
Update DacteOS.php mostrar as informacoes do Fisco
  • Loading branch information
cleitonperin authored Sep 27, 2024
2 parents bcb0942 + 0ae8cfe commit 41bd258
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/CTe/DacteOS.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class DacteOS extends DaCommon
protected $veic;
protected $ferrov;
protected $Comp;
protected $ObsFisco;
protected $infNF;
protected $infNFe;
protected $compl;
Expand Down Expand Up @@ -130,6 +131,7 @@ private function loadDoc($xml)
$this->chaveCTeRef = $this->getTagValue($this->infCteComp, "chave");
$this->vPrest = $this->dom->getElementsByTagName("vPrest")->item(0);
$this->Comp = $this->dom->getElementsByTagName("Comp");
$this->ObsFisco = $this->dom->getElementsByTagName("ObsFisco");
$this->infNF = $this->dom->getElementsByTagName("infNF");
$this->infNFe = $this->dom->getElementsByTagName("infNFe");
$this->infOutros = $this->dom->getElementsByTagName("infOutros");
Expand All @@ -144,8 +146,12 @@ private function loadDoc($xml)
$vTrib = 0;
}
$textoAdic = number_format($vTrib, 2, ",", ".");
$textoObsFisco = "";
foreach($this->ObsFisco as $obsFisco){
$textoObsFisco .= $this->getTagValue($obsFisco, "xTexto").". ";
}
$this->textoAdic = "o valor aproximado de tributos incidentes sobre o preço deste serviço é de R$"
.$textoAdic;
.$textoAdic.'. '.$textoObsFisco;
$this->toma = $this->dom->getElementsByTagName("toma")->item(0);
$this->enderToma = $this->getTagValue($this->toma, "enderToma");
//modal aquaviário
Expand Down

0 comments on commit 41bd258

Please sign in to comment.