Skip to content

Commit

Permalink
fix: alterado verificação de existência das cobrancas
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeferson Menegaldo committed Jun 29, 2023
1 parent 47ed3ff commit 27cdf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NFe/Core/Nota.php
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@ public function getNode($name = null)
$transporte = $dom->importNode($transporte, true);
$info->appendChild($transporte);
$_cobrancas = $this->getCobrancas();
if (!is_null($_cobrancas)) {
if(count($_cobrancas ?: []) > 0) {
$cobr = $dom->createElement('cobr');
foreach ($_cobrancas as $_cobranca) {
$cobranca = $_cobranca->getNode();
Expand Down

0 comments on commit 27cdf41

Please sign in to comment.