diff --git a/CHANGELOG.md b/CHANGELOG.md index f0aad4aba..7fc0353e3 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ Tutti i maggiori cambiamenti di questo progetto saranno documentati in questo fi Il formato utilizzato è basato sulle linee guida di [Keep a Changelog](http://keepachangelog.com/), e il progetto segue il [Semantic Versioning](http://semver.org/) per definire le versioni delle release. -- [2.4.19](#2419-2020-11-) +- [2.4.19 (2020-11-10)](#2419-2020-11-10) - [2.4.18 (2020-10-30)](#2418-2020-10-30) - [2.4.17.1 (2020-09-18)](#24171-2020-09-18) - [2.4.17 (2020-08-24)](#2417-2020-08-24) @@ -30,7 +30,7 @@ Il formato utilizzato è basato sulle linee guida di [Keep a Changelog](http://k - [2.2 (2016-11-10)](#22-2016-11-10) - [2.1 (2015-04-02)](#21-2015-04-02) -## 2.4.19 (2020-11-) +## 2.4.19 (2020-11-10) ### Aggiunto (Added) - Aggiunta gestione conto anticipi cliente e fornitore tramite **Prima nota** diff --git a/plugins/receiptFE/edit.php b/plugins/receiptFE/edit.php index d1e4e4163..c05662c26 100755 --- a/plugins/receiptFE/edit.php +++ b/plugins/receiptFE/edit.php @@ -32,6 +32,29 @@ if (Interaction::isEnabled()) { '_BTN_' => ' '.tr('Ricerca ricevute').'', ]).'.

'; + + $fatture_generate_errore = Fattura::vendita() + ->whereIn('codice_stato_fe', ['NS','ERR']) + ->where('data_stato_fe', '>=', $_SESSION['period_start']) + ->orderBy('data_stato_fe') + ->get(); + + if (!empty($fatture_generate_errore)) { + echo ' + '; + } + + // Controllo se ci sono fatture in elaborazione da più di 7 giorni per le quali non ho ancora una ricevuta $data_limite = (new Carbon())->subDays(7); $fatture_generate = Fattura::vendita() @@ -43,8 +66,8 @@ if (Interaction::isEnabled()) { if (!empty($fatture_generate)) { echo ' -
-

'.tr('Attenzione: le seguenti fatture sono in attesa di una ricevuta').'.

+ '; - } + } + } echo '