1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-23 14:57:46 +01:00

Correzioni sulla verifica delle ricevute

This commit is contained in:
Dasc3er 2020-10-16 15:50:37 +02:00
parent a05a712cdd
commit 9073df9b16
3 changed files with 31 additions and 37 deletions

View File

@ -124,18 +124,12 @@ echo '
echo '<br><br>';
// Messaggio informativo sulla ricevuta principale impostata
if (!empty($fattura->codice_stato_fe)) {
if (!empty($ricevuta_principale)) {
echo '
<div class="alert alert-'.$stato_fe['tipo'].'">
<div class="pull-right">
<i class="fa fa-clock-o tip" title="'.tr('Data e ora').'"></i> '.timestampFormat($record['data_stato_fe']);
if (!empty($ricevuta_principale)) {
echo '
<div class="alert alert-'.$class.'">
<div class="pull-right">
<i class="fa fa-clock-o tip" title="'.tr('Data e ora ricezione').'"></i> '.Translator::timestampToLocale($record['data_stato_fe']);
if (!empty($ultima_ricevuta)) {
echo '
<a href="'.ROOTDIR.'/view.php?file_id='.$ultima_ricevuta->id.'" target="_blank" class="btn btn-info btn-xs">
@ -196,7 +190,6 @@ if (!empty($fattura->codice_stato_fe)) {
</table>';
}
}
}
}
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);

View File

@ -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)

View File

@ -303,9 +303,9 @@ 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');