Skip to content

Commit

Permalink
Na NFCe não é obrigatório o destinatário. No envio EPEC espera a UF d…
Browse files Browse the repository at this point in the history
…o destinatário
  • Loading branch information
Juliana Apolo committed Nov 4, 2024
1 parent b774ddc commit 72a6a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/TraitEPECNfce.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function sefazEpecNfce(string &$xml, string $verAplic = null): string
$tpNF = $dom->getElementsByTagName('tpNF')->item(0)->nodeValue;
$emitIE = $emit->getElementsByTagName('IE')->item(0)->nodeValue;
$destUF = $uf;
if (!empty($dest)) {
if (!empty($dest) && isset($dest->getElementsByTagName('UF')->item(0)->nodeValue)) {

Check warning on line 95 in src/Traits/TraitEPECNfce.php

View check run for this annotation

Codecov / codecov/patch

src/Traits/TraitEPECNfce.php#L95

Added line #L95 was not covered by tests
$destUF = $dest->getElementsByTagName('UF')->item(0)->nodeValue;
}
$total = $dom->getElementsByTagName('total')->item(0);
Expand Down

0 comments on commit 72a6a9d

Please sign in to comment.