Skip to content

Commit

Permalink
Ajustes na marca de contingencia da Mdfe.
Browse files Browse the repository at this point in the history
  • Loading branch information
icompsoftcleiton committed May 7, 2024
1 parent 26238de commit 93ae550
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/MDFe/Damdfe.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ protected function statusMDFe()
'message' => [],
'submessage' => ''
];
if (($this->tpEmis == 2 || $this->tpEmis == 5) and empty($this->nProt)) {
$resp['status'] = false;
$resp['message'][] = "MDF-e Emitido em Contingência";
$resp['message'][] = "devido à problemas técnicos";
return $resp;
}
if (!isset($this->mdfeProc)) {
$resp['status'] = false;
$resp['message'][] = 'MDFe NÃO PROTOCOLADA';
Expand Down Expand Up @@ -486,10 +492,6 @@ protected function statusMDFe()
$resp['message'][] = "MDFe ENCERRADA";
$resp['submessage'] = "{$dhEvento} - {$nProt}";
}
} elseif (($this->tpEmis == 2 || $this->tpEmis == 5) and empty($this->nProt)) {
$resp['status'] = false;
$resp['message'][] = "MDFE Emitido em Contingência";
$resp['message'][] = "devido à problemas técnicos";
}
}
return $resp;
Expand Down

0 comments on commit 93ae550

Please sign in to comment.