mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
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;
|
$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([
|
echo json_encode([
|
||||||
'invoice_number' => $informazioni['invoice_number'],
|
'invoice_number' => $informazioni['invoice_number'],
|
||||||
'size' => Filesystem::formatBytes($informazioni['size']),
|
'size' => Filesystem::formatBytes($informazioni['size']),
|
||||||
|
@ -139,10 +139,10 @@ if (Services::isEnabled()) {
|
|||||||
for (let i = 0; i < 5; i++) {
|
for (let i = 0; i < 5; i++) {
|
||||||
const data = response.history[i];
|
const data = response.history[i];
|
||||||
|
|
||||||
$("#elenco-fe").append(`<tr>
|
$("#elenco-fe").append(`<td>
|
||||||
<th>` + data["year"] + `</th>
|
<td>` + data["year"] + `</td>
|
||||||
<th>` + data["number"] + `</th>
|
<td>` + data["number"] + `</td>
|
||||||
<th>` + data["size"] + `</th>
|
<td>` + data["size"] + `</td>
|
||||||
</tr>`);
|
</tr>`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user