Skip to content

Commit

Permalink
Ajustes na impressao do CteOs.
Browse files Browse the repository at this point in the history
  • Loading branch information
icompsoftcleiton committed Dec 13, 2024
1 parent b1aa8ce commit 6cbd40f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/CTe/DacteOS.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class DacteOS extends DaCommon
protected $ferrov;
protected $Comp;
protected $ObsFisco;
protected $ObsCont;
protected $infNF;
protected $infNFe;
protected $compl;
Expand Down Expand Up @@ -133,6 +134,7 @@ private function loadDoc($xml)
$this->vPrest = $this->dom->getElementsByTagName("vPrest")->item(0);
$this->Comp = $this->dom->getElementsByTagName("Comp");
$this->ObsFisco = $this->dom->getElementsByTagName("ObsFisco");
$this->ObsCont = $this->dom->getElementsByTagName("ObsCont");
$this->infNF = $this->dom->getElementsByTagName("infNF");
$this->infNFe = $this->dom->getElementsByTagName("infNFe");
$this->infOutros = $this->dom->getElementsByTagName("infOutros");
Expand All @@ -147,13 +149,17 @@ private function loadDoc($xml)
if (!is_numeric($vTrib)) {
$vTrib = 0;
}
$textoAdic = number_format($vTrib, 2, ",", ".");
$vTotTrib = number_format($vTrib, 2, ",", ".");
$textoObsCont = "";
foreach($this->ObsCont as $obsCont){
$textoObsCont .= $this->getTagValue($obsCont, "xTexto").". ";
}
$textoObsFisco = "";
foreach($this->ObsFisco as $obsFisco){
$textoObsFisco .= $this->getTagValue($obsFisco, "xTexto").". ";
}
$this->textoAdic = "Valor aproximado de tributos incidentes sobre o preço deste serviço é de R$"
.$textoAdic.'. '.$textoObsFisco;
$this->textoAdic = "Valor aproximado de tributos incidentes sobre o preço deste serviço é de R$ {$vTotTrib}"
. "{$textoObsCont} {$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 6cbd40f

Please sign in to comment.