Skip to content

Commit

Permalink
Merge pull request #25 from arquivei/fix/ENGAJA-1080
Browse files Browse the repository at this point in the history
Grupo infGTVE DACTe e DACTeOS
  • Loading branch information
ricardo-arquivei authored Feb 1, 2023
2 parents ed46950 + fa7d6d1 commit 2c8a378
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CTe/Dacte.php
Original file line number Diff line number Diff line change
Expand Up @@ -1964,7 +1964,7 @@ protected function zCompValorServ($x = 0, $y = 0)
$auxX = $oldX;
$yIniDados += 4;
foreach ($this->Comp as $k => $d) {
$nome = $this->Comp->item($k)->getElementsByTagName('xNome')->item(0)->nodeValue;
$nome = $this->Comp->item($k)->getElementsByTagName('tpComp')->item(0)->nodeValue;
$valor = number_format(
$this->Comp->item($k)->getElementsByTagName('vComp')->item(0)->nodeValue,
2,
Expand Down
2 changes: 1 addition & 1 deletion src/CTe/DacteOSV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ protected function zCompValorServ($x = 0, $y = 0)
$yIniDados += 4;

foreach ($this->Comp as $k => $d) {
$nome = $this->Comp->item($k)->getElementsByTagName('xNome')->item(0)->nodeValue;
$nome = $this->Comp->item($k)->getElementsByTagName('tpComp')->item(0)->nodeValue;
$valor = number_format(
(float) $this->Comp->item($k)->getElementsByTagName('vComp')->item(0)->nodeValue,
2,
Expand Down
2 changes: 1 addition & 1 deletion src/CTe/DacteV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,7 @@ protected function zCompValorServ($x = 0, $y = 0)
$auxX = $oldX;
$yIniDados += 4;
foreach ($this->Comp as $k => $d) {
$nome = $this->Comp->item($k)->getElementsByTagName('xNome')->item(0)->nodeValue;
$nome = $this->Comp->item($k)->getElementsByTagName('tpComp')->item(0)->nodeValue;
$valor = number_format(
$this->Comp->item($k)->getElementsByTagName('vComp')->item(0)->nodeValue,
2,
Expand Down

0 comments on commit 2c8a378

Please sign in to comment.