Skip to content

Commit

Permalink
fix: adicionado cobranca ao fromArray da nota
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeferson Menegaldo committed Jun 29, 2023
1 parent 12ab047 commit 4e2f145
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/NFe/Core/Nota.php
Original file line number Diff line number Diff line change
Expand Up @@ -1516,6 +1516,11 @@ public function fromArray($nota = [])
} else {
$this->setPagamentos($nota['pagamentos']);
}
if (!isset($nota['cobrancas'])) {
$this->setCobrancas([]);
} else {
$this->setCobrancas($nota['cobrancas']);
}
if (isset($nota['data_movimentacao'])) {
$this->setDataMovimentacao($nota['data_movimentacao']);
} else {
Expand Down

0 comments on commit 4e2f145

Please sign in to comment.