'.timestampFormat($record['data_stato_fe']);
- if (!empty($ricevuta_principale)) {
+ if (!empty($ultima_ricevuta)) {
echo '
-
-
-
'.Translator::timestampToLocale($record['data_stato_fe']);
-
- if (!empty($ultima_ricevuta)) {
- echo '
'.tr('Visualizza ricevuta').'
';
- }
+ }
- echo '
+ echo '
@@ -151,26 +145,26 @@ if (!empty($fattura->codice_stato_fe)) {
'.$stato_fe['codice'].' - '.$stato_fe['descrizione'].'
';
- if (!empty($record['descrizione_ricevuta_fe'])) {
- echo '
-
'.tr('Note', [], ['upper' => true]).': '.$record['descrizione_ricevuta_fe'];
- }
-
- if ($fattura->codice_stato_fe == 'GEN') {
- echo '
-
'.tr("La fattura è stata generata ed è pronta per l'invio").'.';
- }
-
+ if (!empty($record['descrizione_ricevuta_fe'])) {
echo '
+
'.tr('Note', [], ['upper' => true]).': '.$record['descrizione_ricevuta_fe'];
+ }
+
+ if ($fattura->codice_stato_fe == 'GEN') {
+ echo '
+
'.tr("La fattura è stata generata ed è pronta per l'invio").'.';
+ }
+
+ echo '
';
- // Lettura della ricevuta
- if (!empty($ricevuta_principale) && file_exists($ricevuta_principale->filepath)) {
- $contenuto_ricevuta = XML::readFile($ricevuta_principale->filepath);
- $lista_errori = $contenuto_ricevuta['ListaErrori'];
+ // Lettura della ricevuta
+ if (!empty($ricevuta_principale) && file_exists($ricevuta_principale->filepath)) {
+ $contenuto_ricevuta = XML::readFile($ricevuta_principale->filepath);
+ $lista_errori = $contenuto_ricevuta['ListaErrori'];
- if (!empty($lista_errori)) {
- echo '
+ if (!empty($lista_errori)) {
+ echo '
'.tr('Elenco degli errori').'
@@ -181,20 +175,19 @@ if (!empty($fattura->codice_stato_fe)) {
';
- $lista_errori = $lista_errori[0] ? $lista_errori : [$lista_errori];
- foreach ($lista_errori as $errore) {
- $errore = $errore['Errore'];
- echo '
+ $lista_errori = $lista_errori[0] ? $lista_errori : [$lista_errori];
+ foreach ($lista_errori as $errore) {
+ $errore = $errore['Errore'];
+ echo '
'.$errore['Codice'].' |
'.$errore['Descrizione'].' |
';
- }
+ }
- echo '
+ echo '
';
- }
}
}
}
@@ -238,7 +231,7 @@ echo '
}
function verificaNotificheFE(button) {
- openModal("'.tr('Gestione ricevute').'", "'.$structure->fileurl('notifiche.php').'");
+ openModal("'.tr('Gestione ricevute').'", "'.$structure->fileurl('notifiche.php').'?id_module='.$id_module.'&id_plugin='.$id_plugin.'&id_record='.$id_record.'");
/*
let restore = buttonLoading(button);
diff --git a/plugins/exportFE/src/FatturaElettronica.php b/plugins/exportFE/src/FatturaElettronica.php
index 9c00ae01d..b1c03eae7 100755
--- a/plugins/exportFE/src/FatturaElettronica.php
+++ b/plugins/exportFE/src/FatturaElettronica.php
@@ -311,6 +311,7 @@ class FatturaElettronica
/**
* Restituisce il nome del file XML per la fattura elettronica.
*
+ * @param bool $new
* @return string
*/
public function getFilename($new = false)
diff --git a/update/2_4_18.sql b/update/2_4_18.sql
index 57765441d..3e3f606dd 100644
--- a/update/2_4_18.sql
+++ b/update/2_4_18.sql
@@ -303,12 +303,12 @@ UPDATE `fe_stati_documento` SET `is_generabile` = '1' WHERE `codice` = 'NS';
UPDATE `fe_stati_documento` SET `is_generabile` = '1' WHERE `codice` = 'EC02';
UPDATE `fe_stati_documento` SET `tipo` = 'danger';
-UPDATE `fe_stati_documento` SET `tipo` = 'warning' WHERE `codice` IN ('ERVAL', 'MC', 'WAIT', 'NE');
+UPDATE `fe_stati_documento` SET `tipo` = 'warning' WHERE `codice` IN ('ERVAL', 'WAIT', 'NE');
UPDATE `fe_stati_documento` SET `tipo` = 'success' WHERE `codice` IN ('EC01', 'RC');
-UPDATE `fe_stati_documento` SET `tipo` = 'info' WHERE `codice` IN ('GEN');
+UPDATE `fe_stati_documento` SET `tipo` = 'info' WHERE `codice` IN ('GEN', 'MC');
-- Aggiunta stampa liquidazione IVA
INSERT INTO `zz_prints` (`id`, `id_module`, `is_record`, `name`, `title`, `filename`, `directory`, `previous`, `options`, `icon`, `version`, `compatibility`, `order`, `predefined`, `default`, `enabled`) VALUES (NULL,(SELECT id FROM zz_modules WHERE name='Stampe contabili'), '1', 'Liquidazione IVA', 'Liquidazione IVA', 'Liquidazione IVA', 'liquidazione_iva', '', '', 'fa fa-print', '', '', '0', '0', '1', '1');
-- Aggiunta impostazione per Liquidazione IVA
-INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`, `help`) VALUES (NULL, 'Liquidazione iva', 'Mensile', 'list[Mensile,Trimestrale]', '1', 'Fatturazione', '16', NULL);
\ No newline at end of file
+INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`, `help`) VALUES (NULL, 'Liquidazione iva', 'Mensile', 'list[Mensile,Trimestrale]', '1', 'Fatturazione', '16', NULL);