Correzione minore stato FE

This commit is contained in:
Dasc3er 2020-11-20 16:54:40 +01:00
parent e5c1c4e0f7
commit 8a8092ed10
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class Interaction extends Services
$body = static::responseBody($response);
// Aggiornamento dello stato
if ($body['status'] == 200) {
if ($body['status'] == 200 || $body['status'] == 301) {
database()->update('co_documenti', [
'codice_stato_fe' => 'WAIT',
'data_stato_fe' => date('Y-m-d H:i:s'),

View File

@ -50,7 +50,7 @@ class InvoiceHook extends Manager
$result = Interaction::sendInvoice($fattura->id);
if ($result['code'] == 200) {
if ($result['code'] == 200 || $result['code'] == 301) {
$fattura->hook_send = false;
$fattura->save();
}