mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-18 12:30:35 +01:00
Aggiunto storico per l'utilizzo delle fatture elettroniche Services
This commit is contained in:
parent
beefb22078
commit
d80c91c99e
@ -198,6 +198,7 @@ switch (filter('op')) {
|
|||||||
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']),
|
||||||
|
'history' => $informazioni['history'],
|
||||||
]);
|
]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -101,10 +101,23 @@ if (Services::isEnabled()) {
|
|||||||
<hr><br>
|
<hr><br>
|
||||||
|
|
||||||
<h4>'.tr('Statistiche su Fatture Elettroniche').'</h4>
|
<h4>'.tr('Statistiche su Fatture Elettroniche').'</h4>
|
||||||
<ul>
|
<table class="table table-striped">
|
||||||
<li>'.tr('Fatture transitate').': <span id="fe_numero"></span></li>
|
<thead>
|
||||||
<li>'.tr('Spazio occupato').': <span id="fe_spazio"></span></li>
|
<tr>
|
||||||
</ul>
|
<th>'.tr('Anno').'</th>
|
||||||
|
<th>'.tr('Fatture transitate').'</th>
|
||||||
|
<th>'.tr('Spazio occupato').'</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody id="elenco-fe">
|
||||||
|
<tr class="info">
|
||||||
|
<td>'.tr('Totale').'</td>
|
||||||
|
<td id="fe_numero"></td>
|
||||||
|
<td id="fe_spazio"></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -113,7 +126,7 @@ if (Services::isEnabled()) {
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: globals.rootdir + "/actions.php",
|
url: globals.rootdir + "/actions.php",
|
||||||
type: "GET",
|
type: "GET",
|
||||||
dataType: "json",
|
dataType: "JSON",
|
||||||
data: {
|
data: {
|
||||||
id_module: globals.id_module,
|
id_module: globals.id_module,
|
||||||
op: "informazioni-fe",
|
op: "informazioni-fe",
|
||||||
@ -121,6 +134,18 @@ if (Services::isEnabled()) {
|
|||||||
success: function (response) {
|
success: function (response) {
|
||||||
$("#fe_numero").html(response.invoice_number);
|
$("#fe_numero").html(response.invoice_number);
|
||||||
$("#fe_spazio").html(response.size);
|
$("#fe_spazio").html(response.size);
|
||||||
|
|
||||||
|
if (response.history.length) {
|
||||||
|
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>
|
||||||
|
</tr>`);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user