Aggiunta colonna scalare su stampa mastrino

This commit is contained in:
Matteo 2021-06-15 11:22:34 +02:00
parent 5499e01eff
commit ca7cdfdd08
3 changed files with 14 additions and 3 deletions

View File

@ -35,6 +35,7 @@ if (get('lev') == '2' || get('lev') == '3') {
<th>SALDO FINALE</th>
<th class="text-right">'.moneyFormat(abs($dare)).'</th>
<th class="text-right">'.moneyFormat(abs($avere)).'</th>
<th class="text-right">'.moneyFormat(abs($scalare)).'</th>
</tr>';
} elseif (get('lev') == '1') {
$totale_attivo = 0;

View File

@ -38,5 +38,12 @@ echo '
echo ' <td></td>
<td class="text-right">'.moneyFormat(abs($record['totale']), 2).'</td>';
}
$scalare += $record['totale'];
echo '
<td class="text-right">
'.moneyFormat($scalare, 2).'
</td>';
echo '</tr>';
$prev_titolo = $record['titolo'];

View File

@ -24,9 +24,12 @@ echo '
<thead>
<tr>
<th width="10%">DATA</th>
<th width="60%">DESCRIZIONE</th>
<th width="15%">DARE</th>
<th width="15%">AVERE</th>
<th width="51%">DESCRIZIONE</th>
<th width="13%">DARE</th>
<th width="13%">AVERE</th>
<th width="13%">SCALARE</th>
</tr>
</thead>
<tbody>';
$scalare = 0;