Correzione minore su storico FE Services

This commit is contained in:
Dasc3er 2021-03-01 16:41:52 +01:00
parent 77b26a318f
commit 55d6f5c0c2
2 changed files with 10 additions and 4 deletions

View File

@ -195,6 +195,12 @@ switch (filter('op')) {
$informazioni = $info->content;
// Formattazione dei contenuti
$history = (array) $informazioni['history'];
foreach ($history as $key => $value) {
$history[$key]['size'] = Filesystem::formatBytes($value['size']);
}
echo json_encode([
'invoice_number' => $informazioni['invoice_number'],
'size' => Filesystem::formatBytes($informazioni['size']),

View File

@ -139,10 +139,10 @@ if (Services::isEnabled()) {
for (let i = 0; i < 5; i++) {
const data = response.history[i];
$("#elenco-fe").append(`<tr>
<th>` + data["year"] + `</th>
<th>` + data["number"] + `</th>
<th>` + data["size"] + `</th>
$("#elenco-fe").append(`<td>
<td>` + data["year"] + `</td>
<td>` + data["number"] + `</td>
<td>` + data["size"] + `</td>
</tr>`);
}
}