mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Aggiunto invio FE tramite hook
This commit is contained in:
@@ -27,14 +27,6 @@ switch (filter('op')) {
|
||||
case 'send':
|
||||
$result = Interaction::sendInvoice($id_record);
|
||||
|
||||
// Aggiornamento dello stato
|
||||
if ($result['code'] == 200) {
|
||||
database()->update('co_documenti', [
|
||||
'codice_stato_fe' => 'WAIT',
|
||||
'data_stato_fe' => date('Y-m-d H:i:s'),
|
||||
], ['id' => $id_record]);
|
||||
}
|
||||
|
||||
echo json_encode($result);
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user