mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-22 13:26:38 +01:00
7eda6ad01b
Fix #622, riferimento a #537. Aggiunto supporto a stampe "a pezzi" per ridurre l'utilizzo della memoria.
18 lines
506 B
PHP
18 lines
506 B
PHP
<?php
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
$totale_da_pagare = sum(array_column($records, 'Importo'));
|
|
$totale_pagato = sum(array_column($records, 'Pagato'));
|
|
|
|
echo '
|
|
<tr>
|
|
<td colspan="4" class="text-right">
|
|
<b>'.tr('Totale', [], ['upper' => true]).':</b>
|
|
</td>
|
|
<td class="text-right">'.moneyFormat($totale_da_pagare, 2).'</td>
|
|
<td class="text-right">'.moneyFormat($totale_pagato, 2).'</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>';
|