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>SALDO FINALE</th>
<th class="text-right">'.moneyFormat(abs($dare)).'</th> <th class="text-right">'.moneyFormat(abs($dare)).'</th>
<th class="text-right">'.moneyFormat(abs($avere)).'</th> <th class="text-right">'.moneyFormat(abs($avere)).'</th>
<th class="text-right">'.moneyFormat(abs($scalare)).'</th>
</tr>'; </tr>';
} elseif (get('lev') == '1') { } elseif (get('lev') == '1') {
$totale_attivo = 0; $totale_attivo = 0;

View File

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

View File

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