Skip to content

Commit

Permalink
Merge pull request #836 from robmachado/master
Browse files Browse the repository at this point in the history
ajustes qdo resposta da SEFAZ em branco
  • Loading branch information
robmachado committed Apr 6, 2021
2 parents a019bc3 + 173205d commit 315213f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Common/Standardize.php
Expand Up @@ -105,6 +105,14 @@ public function whichIs($xml)
return $key;
}
}
$result = $dom->getElementsByTagName('nfeResultMsg')->item(0);
if (!empty($result)) {
$cont = $result->textContent;
if (empty($cont)) {
throw new Exception('O retorno da SEFAZ veio em BRANCO, '
. 'ou seja devido a um erro ou instabilidade na própria SEFAZ.');
}
}
//documento does not belong to the SPED-NFe project
throw DocumentsException::wrongDocument(7);
}
Expand Down

0 comments on commit 315213f

Please sign in to comment.