diff --git a/plugins/exportFE/actions.php b/plugins/exportFE/actions.php index d69b762c0..1b696e52a 100644 --- a/plugins/exportFE/actions.php +++ b/plugins/exportFE/actions.php @@ -28,12 +28,13 @@ switch (filter('op')) { $result = Interaction::sendXML($id_record); // Aggiornamento dello stato + /* if ($result) { database()->update('co_documenti', [ 'codice_stato_fe' => 'WAIT', ], ['id' => $id_record]); } - +*/ echo json_encode([ 'sent' => $result, ]); diff --git a/update/2_4_5.sql b/update/2_4_5.sql index d4100e306..31399ccaf 100644 --- a/update/2_4_5.sql +++ b/update/2_4_5.sql @@ -11,4 +11,11 @@ ALTER TABLE `an_anagrafiche` ADD `split_payment` BOOLEAN NOT NULL DEFAULT FALSE ALTER TABLE `co_righe_documenti` ADD `prezzo_unitario_acquisto` DECIMAL(12,4) NOT NULL AFTER `descrizione`; ALTER TABLE `co_righe_preventivi` ADD `prezzo_unitario_acquisto` DECIMAL(12,4) NOT NULL AFTER `descrizione`; -UPDATE `fe_stati_documento` SET `descrizione`='Rifiutata' WHERE `codice`='REF'; +-- Uniformati codici con standard SDI e aggiunta 2 stati mancanti +UPDATE `fe_stati_documento` SET `codice`='EC01' WHERE `codice`='ACK'; +UPDATE `fe_stati_documento` SET `codice`='EC02', `descrizione`='Rifiutata' WHERE `codice`='REF'; +UPDATE `fe_stati_documento` SET `codice`='RC', `descrizione`='Consegnata' WHERE `codice`='SENT'; +INSERT INTO `fe_stati_documento`( `codice`, `descrizione`, `icon` ) VALUES +( 'MC', 'Mancata consegna', 'fa fa-exclamation-circle text-danger' ), +( 'DT', 'Decorrenza termini', 'fa fa-calendar-times-o text-danger' ), +( 'NS', 'Scartata', 'fa fa-times text-danger' );