diff --git a/controller.php b/controller.php
index 2b5c0de4c..d5ef0265f 100755
--- a/controller.php
+++ b/controller.php
@@ -104,7 +104,7 @@ if ($user->is_admin && string_contains($module['option'], '|select|')) {
';
}
diff --git a/modules/aggiornamenti/src/Controlli/DatiFattureElettroniche.php b/modules/aggiornamenti/src/Controlli/DatiFattureElettroniche.php
index 62ad306a9..288c7b1f6 100644
--- a/modules/aggiornamenti/src/Controlli/DatiFattureElettroniche.php
+++ b/modules/aggiornamenti/src/Controlli/DatiFattureElettroniche.php
@@ -26,7 +26,7 @@ class DatiFattureElettroniche extends Controllo
{
public function getName()
{
- return tr('Corrispondeze Fatture Elettroniche XML e Fatture di vendita');
+ return tr('Corrispondenze XML FE e Documenti di vendita');
}
public function getType($record)
@@ -92,28 +92,26 @@ class DatiFattureElettroniche extends Controllo
];
$riepilogo_anomalie = '
-
-
- Sorgente
- P. Iva
- Cod. fiscale
- Totale
-
+
+
Sorgente
+
P. Iva
+
Cod. fiscale
+
Totale
+
+
+
+
XML
+
'.$anomalia['piva_xml'].'
+
'.$anomalia['codice_fiscale_xml'].'
+
'.$anomalia['totale_documento_xml'].'
+
-
- XML
- '.$anomalia['piva_xml'].'
- '.$anomalia['codice_fiscale_xml'].'
- '.$anomalia['totale_documento_xml'].'
-
-
-
- Gestionale
- '.$this->htmlDiff($anomalia['piva_xml'], $anomalia['piva']).'
- '.$this->htmlDiff($anomalia['codice_fiscale_xml'], $anomalia['codice_fiscale']).'
- '.$this->htmlDiff($anomalia['totale_documento_xml'], $anomalia['totale_documento']).'
-
-
';
+
+
Gestionale
+
'.$this->htmlDiff($anomalia['piva_xml'], $anomalia['piva']).'
+
'.$this->htmlDiff($anomalia['codice_fiscale_xml'], $anomalia['codice_fiscale']).'
+
'.$this->htmlDiff($anomalia['totale_documento_xml'], $anomalia['totale_documento']).'
+
';
$this->addResult([
'id' => $fattura_vendita->id,
diff --git a/modules/stato_servizi/actions.php b/modules/stato_servizi/actions.php
index 66eb0ac17..8f207da76 100755
--- a/modules/stato_servizi/actions.php
+++ b/modules/stato_servizi/actions.php
@@ -199,11 +199,15 @@ switch (filter('op')) {
$history = (array) $informazioni['history'];
foreach ($history as $key => $value) {
$history[$key]['size'] = Filesystem::formatBytes($value['size']);
+ $history[$key]['invoices_size'] = Filesystem::formatBytes($value['invoices_size']);
+ $history[$key]['notifies_size'] = Filesystem::formatBytes($value['notifies_size']);
}
echo json_encode([
'invoice_number' => $informazioni['invoice_number'],
'size' => Filesystem::formatBytes($informazioni['size']),
+ 'invoices_size' => Filesystem::formatBytes($informazioni['invoices_size']),
+ 'notifies_size' => Filesystem::formatBytes($informazioni['notifies_size']),
'history' => $history,
]);
break;
diff --git a/modules/stato_servizi/edit.php b/modules/stato_servizi/edit.php
index d60400326..1450a6f25 100755
--- a/modules/stato_servizi/edit.php
+++ b/modules/stato_servizi/edit.php
@@ -105,8 +105,10 @@ if (Services::isEnabled()) {
'.tr('Anno').'
- '.tr('Fatture transitate').'
- '.tr('Spazio occupato').'
+ '.tr('Documenti transitati').'
+ '.tr('Spazio fatture').'
+ '.tr('Spazio ricevute').'
+ '.tr('Spazio totale occupato').'
@@ -114,6 +116,8 @@ if (Services::isEnabled()) {
'.tr('Totale').'
+
+
@@ -133,6 +137,8 @@ if (Services::isEnabled()) {
},
success: function (response) {
$("#fe_numero").html(response.invoice_number);
+ $("#fe_spazio_fatture").html(response.invoices_size);
+ $("#fe_spazio_ricevute").html(response.notifies_size);
$("#fe_spazio").html(response.size);
if (response.history.length) {
@@ -142,6 +148,8 @@ if (Services::isEnabled()) {
$("#elenco-fe").append(`
` + data["year"] + `
` + data["number"] + `
+ ` + data["invoices_size"] + `
+ ` + data["notifies_size"] + `
` + data["size"] + `
`);
}
diff --git a/src/HTMLBuilder/Handler/SelectHandler.php b/src/HTMLBuilder/Handler/SelectHandler.php
index 8297bc953..b38802c5a 100755
--- a/src/HTMLBuilder/Handler/SelectHandler.php
+++ b/src/HTMLBuilder/Handler/SelectHandler.php
@@ -158,13 +158,9 @@ class SelectHandler implements HandlerInterface
$attributes[] = 'style="background:'.$element['_bgcolor_'].'; color:'.color_inverse($element['_bgcolor_'].';"');
}
- $exclude = ['id', 'text'];
// Leggo ulteriori campi oltre a id e descrizione per inserirli nell'option nella forma "data-nomecampo1", "data-nomecampo2", ecc
- foreach ($element as $key => $value) {
- if (!in_array($key, $exclude)) {
- $attributes[] = 'data-'.$key.'="'.prepareToField($value).'"';
- }
- }
+ unset($element['optgroup']);
+ $attributes[] = "data-select-attributes='".replace(json_encode($element), ["'" => "\'"])."'";
$html .= '
'.$element['text'].' ';
diff --git a/update/2_4_23.sql b/update/2_4_23.sql
index 335eb5c64..0ab522e70 100644
--- a/update/2_4_23.sql
+++ b/update/2_4_23.sql
@@ -51,3 +51,6 @@ UPDATE `zz_widgets` SET `query` = 'SELECT\n CONCAT_WS(\' \', REPLACE(REPLACE(REP
INSERT INTO `zz_api_resources` (`id`, `version`, `type`, `resource`, `class`, `enabled`) VALUES
(NULL, 'v1', 'create', 'articolo', 'Modules\\Articoli\\API\\v1\\Articoli', '1'),
(NULL, 'v1', 'update', 'articolo', 'Modules\\Articoli\\API\\v1\\Articoli', '1');
+
+-- Fix visualizzazione attività in dashboard
+UPDATE `zz_segments` SET `clause` = '(orario_inizio BETWEEN \'|period_start|\' AND \'|period_end|\' OR orario_fine BETWEEN \'|period_start|\' AND \'|period_end|\')' WHERE `zz_segments`.`name` = 'Attività ';
\ No newline at end of file