Skip to content

Commit

Permalink
fix: corrigido retorno do getValor da classe Total
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeferson Menegaldo committed Jun 29, 2023
1 parent 9f5b5c5 commit 47ed3ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/NFe/Entity/Cobranca.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public function toArray($recursive = false)

public function fromArray($cobranca = [])
{
if ($cobranca instanceof cobranca) {
if ($cobranca instanceof Cobranca) {
$cobranca = $cobranca->toArray();
} elseif (!is_array($cobranca)) {
return $this;
Expand Down Expand Up @@ -315,7 +315,6 @@ public function getNode($name = null)
{
// TODO: implementar a inserção da cobranca no xml
throw new \Exception('NÃO IMPLEMENTADO', 404);
return null;
}

public function loadNode($element, $name = null)
Expand Down
2 changes: 1 addition & 1 deletion src/NFe/Entity/Total.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public function getValor($normalize = false)
if (!$normalize) {
return $this->valor;
}
return $this->valor;
return Util::toCurrency($this->valor);
}

/**
Expand Down

0 comments on commit 47ed3ff

Please sign in to comment.