-
'.tr('Nessun servizio abilitato al momento').'.
+
+ '.tr('Nessun servizio abilitato al momento').'.
';
}
@@ -130,11 +130,12 @@ if (Services::isEnabled()) {
-
-
'.tr('Spazio per Fatture Elettroniche in esaurimento: _NUM_/_TOT_', [
+
+ '.tr('Spazio per fatture elettroniche _TEXT_: _NUM_ utilizzati su _TOT_ disponibili', [
+ '_TEXT_' => '',
'_NUM_' => '',
'_TOT_' => '',
- ]).'. '.tr("Contatta l'assistenza per maggiori informazioni").'.
+ ]).'.
'.tr("Contatta l'assistenza per maggiori informazioni").'.
'.tr('Statistiche su Fatture Elettroniche').'
@@ -247,17 +248,52 @@ function aggiornaStatisticheFE(){
$("#spazio-fe-totale").html(response.spazio_totale);
if (response.avviso_spazio) {
$("#spazio-fe").removeClass("hidden");
+
+ if (response.spazio_occupato
=response.spazio_totale){
+ $("#spazio-fe-icon").addClass("fa fa-times");
+ $("#spazio-fe").addClass("alert-danger");
+ $("#spazio-fe-text").html("'.tr('esaurito').'");
+ }
}
+
+
if (response.history.length) {
- for (let i = 0; i < response.history.length; i++) {
- const data = response.history[i];
+ var current_year = new Date().getFullYear();
- $("#elenco-fe").append(`
+ for (let i = 0; i < response.history.length; i++) {
+
+ const data = response.history[i];
+ if (data["year"] == current_year){
+
+ highlight = "
";
+
+ if (response.maxNumber < data["number"])
+ data["number"] = " " + data["number"];
+
+ if (response.maxNumber>0)
+ data["number"] = data["number"] + " / " + response.maxNumber;
+
+
+
+
+ }else{
+ highlight = "
";
+ }
+
+ $("#elenco-fe").append(highlight + `
` + data["year"] + ` |
` + data["number"] + ` |
` + data["size"] + ` |
`);
+
}
}
}