Skip to content

Commit

Permalink
fix(produto): sempre adiciona a tag infAdProd
Browse files Browse the repository at this point in the history
  • Loading branch information
mazinsw committed Nov 14, 2023
1 parent 06222ec commit 2c3eab7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/NFe/Entity/Produto.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,7 @@ public static function getInformacoesProduto($tributos)
public static function addNodeInformacoes($tributos, $element, $name = null)
{
$texto = Produto::getInformacoesProduto($tributos);
if (! is_null($texto)) {
Util::appendNode($element, is_null($name) ? 'infAdProd' : $name, $texto);
}
Util::appendNode($element, is_null($name) ? 'infAdProd' : $name, $texto);
return $texto;
}

Expand Down

0 comments on commit 2c3eab7

Please sign in to comment.