Skip to content

Commit

Permalink
Merge pull request #588 from rgioia/master
Browse files Browse the repository at this point in the history
Exibir motivo como submessage para status Denegada em  Danfe
  • Loading branch information
robmachado authored Nov 28, 2023
2 parents 3793c0f + 5f80547 commit e2727f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NFe/Danfe.php
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ protected function statusNFe()
if (in_array($cStat, ['110', '205', '301', '302', '303'])) {
$resp['status'] = false;
$resp['message'][] = "NFe DENEGADA";
$resp['submessage'] = $this->infProt->getElementsByTagName('xMotivo')->item(0)->nodeValue;
} elseif (in_array($cStat, ['101', '151', '135', '155'])
|| $this->cancelFlag === true
) {
Expand Down

0 comments on commit e2727f7

Please sign in to comment.