Correzione minore su storico FE Services
This commit is contained in:
parent
77b26a318f
commit
55d6f5c0c2
|
@ -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']),
|
||||
|
|
|
@ -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>`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue