Correzione arrotondamenti su stampe contabili
This commit is contained in:
parent
e56dfe1927
commit
88306cb365
|
@ -46,7 +46,7 @@ echo '
|
|||
<tr>
|
||||
<td><b>'.$liv2_p['numero'].'</b></td>
|
||||
<td><b>'.$liv2_p['descrizione'].'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat($liv2_p['totale']).'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat($liv2_p['totale'], 2).'</b></td>
|
||||
</tr>';
|
||||
|
||||
foreach ($liv3_patrimoniale as $liv3_p) {
|
||||
|
@ -56,7 +56,7 @@ echo '
|
|||
<tr>
|
||||
<td>'.$liv3_p['numero'].'</td>
|
||||
<td>'.$liv3_p['descrizione'].'</td>
|
||||
<td class="text-right">'.numberFormat($liv3_p['totale']).'</td>
|
||||
<td class="text-right">'.numberFormat($liv3_p['totale'], 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
@ -67,14 +67,14 @@ echo '
|
|||
<tr>
|
||||
<td></td>
|
||||
<td>Clienti</td>
|
||||
<td class="text-right">'.numberFormat($crediti_clienti).'</td>
|
||||
<td class="text-right">'.numberFormat($crediti_clienti, 2).'</td>
|
||||
</tr>';
|
||||
} elseif ($liv2_p['id'] == setting('Conto di secondo livello per i debiti fornitori')) {
|
||||
echo '
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Fornitori</td>
|
||||
<td class="text-right">'.numberFormat($debiti_fornitori).'</td>
|
||||
<td class="text-right">'.numberFormat($debiti_fornitori, 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
@ -83,17 +83,17 @@ echo '
|
|||
echo '
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Totale Attività</b></h6></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_attivita)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_attivita), 2).'</b></td>
|
||||
</tr>';
|
||||
if ($utile_perdita > 0) {
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Perdita</b></h6></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($utile_perdita)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($utile_perdita), 2).'</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Totale a pareggio</b></h6></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_attivita) + abs($utile_perdita)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_attivita) + abs($utile_perdita), 2).'</b></td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
|
@ -125,7 +125,7 @@ echo '
|
|||
<tr>
|
||||
<td><b>'.$liv2_p['numero'].'</b></td>
|
||||
<td><b>'.$liv2_p['descrizione'].'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat(abs($liv2_p['totale'])).'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat(abs($liv2_p['totale']), 2).'</b></td>
|
||||
</tr>';
|
||||
|
||||
foreach ($liv3_patrimoniale as $liv3_p) {
|
||||
|
@ -134,7 +134,7 @@ echo '
|
|||
<tr>
|
||||
<td>'.$liv3_p['numero'].'</td>
|
||||
<td>'.$liv3_p['descrizione'].'</td>
|
||||
<td class="text-right">'.numberFormat(-$liv3_p['totale']).'</td>
|
||||
<td class="text-right">'.numberFormat(-$liv3_p['totale'], 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
@ -145,14 +145,14 @@ echo '
|
|||
<tr>
|
||||
<td></td>
|
||||
<td>Clienti</td>
|
||||
<td class="text-right">'.numberFormat(abs($crediti_clienti)).'</td>
|
||||
<td class="text-right">'.numberFormat(abs($crediti_clienti), 2).'</td>
|
||||
</tr>';
|
||||
} elseif ($liv2_p['id'] == setting('Conto di secondo livello per i debiti fornitori')) {
|
||||
echo '
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Fornitori</td>
|
||||
<td class="text-right">'.numberFormat(abs($debiti_fornitori)).'</td>
|
||||
<td class="text-right">'.numberFormat(abs($debiti_fornitori), 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
@ -161,17 +161,17 @@ echo '
|
|||
echo '
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Totale Passività</b></h6></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_passivita)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_passivita), 2).'</b></td>
|
||||
</tr>';
|
||||
if ($utile_perdita < 0) {
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Utile</b></h6></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($utile_perdita)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($utile_perdita), 2).'</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Totale a pareggio</b></h6></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_passivita) + abs($utile_perdita)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_passivita) + abs($utile_perdita), 2).'</b></td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
|
@ -211,8 +211,8 @@ echo '
|
|||
<tr>
|
||||
<td><b>'.$liv2_e['numero'].'</b></td>
|
||||
<td><b>'.$liv2_e['descrizione'].'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat($liv2_e['totale']).'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat($liv2_e['totale_reddito']).'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat($liv2_e['totale'], 2).'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat($liv2_e['totale_reddito'], 2).'</b></td>
|
||||
</tr>';
|
||||
|
||||
foreach ($liv3_economico as $liv3_e) {
|
||||
|
@ -221,8 +221,8 @@ echo '
|
|||
<tr>
|
||||
<td>'.$liv3_e['numero'].'</td>
|
||||
<td>'.$liv3_e['descrizione'].'</td>
|
||||
<td class="text-right">'.numberFormat($liv3_e['totale']).'</td>
|
||||
<td class="text-right">'.numberFormat($liv3_e['totale_reddito']).'</td>
|
||||
<td class="text-right">'.numberFormat($liv3_e['totale'], 2).'</td>
|
||||
<td class="text-right">'.numberFormat($liv3_e['totale_reddito'], 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
@ -231,19 +231,19 @@ echo '
|
|||
echo '
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Totale costi</b></h6></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_costi)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_costi), 2).'</b></td>
|
||||
<td></td>
|
||||
</tr>';
|
||||
if ($utile_perdita < 0) {
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Utile</b></h6></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($utile_perdita)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($utile_perdita), 2).'</b></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Totale a pareggio</b></h6></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_costi) + abs($utile_perdita)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_costi) + abs($utile_perdita), 2).'</b></td>
|
||||
<td></td>
|
||||
</tr>';
|
||||
}
|
||||
|
@ -275,8 +275,8 @@ echo '
|
|||
<tr>
|
||||
<td><b>'.$liv2_e['numero'].'</b></td>
|
||||
<td><b>'.$liv2_e['descrizione'].'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat(abs($liv2_e['totale'])).'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat(abs($liv2_e['totale_reddito'])).'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat(abs($liv2_e['totale']), 2).'</b></td>
|
||||
<td class="text-right"><b>'.numberFormat(abs($liv2_e['totale_reddito']), 2).'</b></td>
|
||||
</tr>';
|
||||
|
||||
foreach ($liv3_economico as $liv3_e) {
|
||||
|
@ -285,8 +285,8 @@ echo '
|
|||
<tr>
|
||||
<td>'.$liv3_e['numero'].'</td>
|
||||
<td>'.$liv3_e['descrizione'].'</td>
|
||||
<td class="text-right">'.numberFormat(abs($liv3_e['totale'])).'</td>
|
||||
<td class="text-right">'.numberFormat(abs($liv3_e['totale_reddito'])).'</td>
|
||||
<td class="text-right">'.numberFormat(abs($liv3_e['totale']), 2).'</td>
|
||||
<td class="text-right">'.numberFormat(abs($liv3_e['totale_reddito']), 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
@ -295,18 +295,18 @@ echo '
|
|||
echo '
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Totale ricavi</b></h6></td>
|
||||
<td style="font-size:8pt;" class="text-right"><b>'.numberFormat(abs($totale_ricavi)).'</b></td>
|
||||
<td style="font-size:8pt;" class="text-right"><b>'.numberFormat(abs($totale_ricavi), 2).'</b></td>
|
||||
<td></td>
|
||||
</tr>';
|
||||
if ($utile_perdita > 0) {
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Perdita</b></h6></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($utile_perdita)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($utile_perdita), 2).'</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><h6><b>Totale a pareggio</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_ricavi) + abs($utile_perdita)).'</b></td>
|
||||
<td class="text-right" style="font-size:8pt;"><b>'.numberFormat(abs($totale_ricavi) + abs($utile_perdita), 2).'</b></td>
|
||||
<td></td>
|
||||
</tr>';
|
||||
}
|
||||
|
|
|
@ -67,9 +67,9 @@ foreach ($raggruppamenti as $raggruppamento) {
|
|||
echo '
|
||||
<tr>
|
||||
<td>'.$mese.'</td>
|
||||
<td class="text-right">'.moneyFormat($imponibile).'</td>
|
||||
<td class="text-right">'.moneyFormat($iva).'</td>
|
||||
<td class="text-right">'.moneyFormat($totale).'</td>
|
||||
<td class="text-right">'.moneyFormat($imponibile, 2).'</td>
|
||||
<td class="text-right">'.moneyFormat($iva, 2).'</td>
|
||||
<td class="text-right">'.moneyFormat($totale, 2).'</td>
|
||||
</tr>';
|
||||
|
||||
$totale_imponibile += $imponibile;
|
||||
|
@ -80,9 +80,9 @@ foreach ($raggruppamenti as $raggruppamento) {
|
|||
echo '
|
||||
<tr>
|
||||
<td class="text-right text-bold">'.tr('Totale', [], ['upper' => true]).':</td>
|
||||
<td class="text-right text-bold">'.moneyFormat($totale_imponibile).'</td>
|
||||
<td class="text-right text-bold">'.moneyFormat($totale_iva).'</td>
|
||||
<td class="text-right text-bold">'.moneyFormat($totale_finale).'</td>
|
||||
<td class="text-right text-bold">'.moneyFormat($totale_imponibile, 2).'</td>
|
||||
<td class="text-right text-bold">'.moneyFormat($totale_iva, 2).'</td>
|
||||
<td class="text-right text-bold">'.moneyFormat($totale_finale, 2).'</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>';
|
||||
|
|
|
@ -22,8 +22,8 @@ include_once __DIR__.'/../../core.php';
|
|||
echo '
|
||||
<tr>
|
||||
<th colspan="4" class="text-right">TOTALE GENERALE</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_dare)).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_avere)).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_dare), 2).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_avere), 2).'</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>';
|
||||
|
|
|
@ -72,16 +72,16 @@ foreach ($iva_vendite_esigibile as $record) {
|
|||
<td>'.round($record['aliquota']).'%</td>
|
||||
<td>'.$record['cod_iva'].'</td>
|
||||
<td>'.$record['descrizione'].'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale'], 2).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva'], 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
<td>TOTALI</td>
|
||||
<td class=text-right>'.moneyFormat($subtotale_iva_esigibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_esigibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($subtotale_iva_esigibile, 2).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_esigibile, 2).'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -94,16 +94,16 @@ foreach ($iva_vendite_nonesigibile as $record) {
|
|||
<td>'.round($record['aliquota']).'%</td>
|
||||
<td>'.$record['cod_iva'].'</td>
|
||||
<td>'.$record['descrizione'].'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale'], 2).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva'], 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
<td>TOTALI</td>
|
||||
<td class=text-right>'.moneyFormat($subtotale_iva_nonesigibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_nonesigibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($subtotale_iva_nonesigibile, 2).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_nonesigibile, 2).'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -115,16 +115,16 @@ foreach ($iva_vendite as $record) {
|
|||
<td>'.round($record['aliquota']).'%</td>
|
||||
<td>'.$record['cod_iva'].'</td>
|
||||
<td>'.$record['descrizione'].'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale'], 2).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva'], 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
<tr>
|
||||
<th colspan="2"></th>
|
||||
<th>TOTALE</th>
|
||||
<th class=text-right>'.moneyFormat($totale_subtotale_vendite).'</th>
|
||||
<th class=text-right>'.moneyFormat($totale_iva_vendite).'</th>
|
||||
<th class=text-right>'.moneyFormat($totale_subtotale_vendite, 2).'</th>
|
||||
<th class=text-right>'.moneyFormat($totale_iva_vendite, 2).'</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -152,16 +152,16 @@ foreach ($iva_acquisti_detraibile as $record) {
|
|||
<td>'.round($record['aliquota']).'%</td>
|
||||
<td>'.$record['cod_iva'].'</td>
|
||||
<td>'.$record['descrizione'].'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale'], 2).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva'], 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
<td>TOTALI</td>
|
||||
<td class=text-right>'.moneyFormat($subtotale_iva_detraibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_detraibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($subtotale_iva_detraibile, 2).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_detraibile, 2).'</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
@ -175,16 +175,16 @@ foreach ($iva_acquisti_nondetraibile as $record) {
|
|||
<td>'.round($record['aliquota']).'%</td>
|
||||
<td>'.$record['cod_iva'].'</td>
|
||||
<td>'.$record['descrizione'].'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale'], 2).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva'], 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
<td>TOTALI</td>
|
||||
<td class=text-right>'.moneyFormat($subtotale_iva_nondetraibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_nondetraibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($subtotale_iva_nondetraibile, 2).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_nondetraibile, 2).'</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
@ -197,8 +197,8 @@ foreach ($iva_acquisti as $record) {
|
|||
<td>'.round($record['aliquota']).'%</td>
|
||||
<td>'.$record['cod_iva'].'</td>
|
||||
<td>'.$record['descrizione'].'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva']).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['subtotale'], 2).'</td>
|
||||
<td class=text-right>'.moneyFormat($record['iva'], 2).'</td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
|
@ -206,8 +206,8 @@ echo '
|
|||
<tr>
|
||||
<th colspan="2"></th>
|
||||
<th>TOTALE</th>
|
||||
<th class=text-right>'.moneyFormat($totale_subtotale_acquisti).'</th>
|
||||
<th class=text-right>'.moneyFormat($totale_iva_acquisti).'</th>
|
||||
<th class=text-right>'.moneyFormat($totale_subtotale_acquisti, 2).'</th>
|
||||
<th class=text-right>'.moneyFormat($totale_iva_acquisti, 2).'</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -230,7 +230,7 @@ echo '
|
|||
} else {
|
||||
echo ' <td>CREDITO ANNO PRECEDENTE</td>';
|
||||
}
|
||||
echo '<td class=text-right>'.moneyFormat(abs($totale_iva_anno_precedente)).'</td>
|
||||
echo '<td class=text-right>'.moneyFormat(abs($totale_iva_anno_precedente), 2).'</td>
|
||||
</tr>
|
||||
<tr>';
|
||||
if ($totale_iva_periodo_precedente >= 0) {
|
||||
|
@ -238,27 +238,27 @@ echo '
|
|||
} else {
|
||||
echo ' <td>CREDITO PERIODO PRECEDENTE</td>';
|
||||
}
|
||||
echo ' <td class=text-right>'.moneyFormat(abs($totale_iva_periodo_precedente)).'</td>
|
||||
echo ' <td class=text-right>'.moneyFormat(abs($totale_iva_periodo_precedente), 2).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TOTALE IVA SU VENDITE ESIGIBILE</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_esigibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_esigibile, 2).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TOTALE IVA OGGETTIVAMENTE NON A DEBITO SU VENDITE</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_nonesigibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_nonesigibile, 2).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TOTALE IVA SU ACQUISTI DETRAIBILI</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_detraibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_detraibile, 2).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TOTALE IVA OGGETTIVAMENTE INDETRAIBILI SU ACQUISTI</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_nondetraibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_nondetraibile, 2).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TOTALE IVA DETRAIBILI</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_detraibile).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_detraibile, 2).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>VARIAZIONE DI IMPOSTA RELATIVE A PERIODI PRECEDENTI</td>
|
||||
|
@ -282,7 +282,7 @@ echo '
|
|||
} else {
|
||||
echo ' <td>IVA A CREDITO</td>';
|
||||
}
|
||||
echo ' <td class=text-right>'.moneyFormat(abs($totale_iva)).'</td>
|
||||
echo ' <td class=text-right>'.moneyFormat(abs($totale_iva), 2).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CREDITO SPECIALE DI IMPOSTA</td>
|
||||
|
@ -290,15 +290,15 @@ echo '
|
|||
</tr>
|
||||
<tr>
|
||||
<td>MAGGIORAZIONE 1,00%</td>
|
||||
<td class=text-right>'.moneyFormat($maggiorazione).'</td>
|
||||
<td class=text-right>'.moneyFormat($maggiorazione, 2).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IVA A DEBITO CON MAGGIORAZIONE</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_maggiorata).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_maggiorata, 2).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IMPORTO DA VERSARE</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_maggiorata).'</td>
|
||||
<td class=text-right>'.moneyFormat($totale_iva_maggiorata, 2).'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CREDITO INFRANNUALE DI IMPOSTA CHIESTO A RIMBORSO</td>
|
||||
|
|
|
@ -34,9 +34,9 @@ if (get('lev') == '2' || get('lev') == '3') {
|
|||
<tr>
|
||||
<th></th>
|
||||
<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>
|
||||
<th class="text-right">'.moneyFormat(abs($dare),2).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($avere),2).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($scalare),2).'</th>
|
||||
</tr>';
|
||||
} elseif (get('lev') == '1') {
|
||||
$totale_attivo = 0;
|
||||
|
@ -52,9 +52,9 @@ if (get('lev') == '2' || get('lev') == '3') {
|
|||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th width="25%">TOTALE ATTIVITÀ</th>
|
||||
<th width="25%" class="text-right">'.moneyFormat(abs($totale_attivo)).'</th>
|
||||
<th width="25%" class="text-right">'.moneyFormat(abs($totale_attivo),2).'</th>
|
||||
<th width="25%">PASSIVITÀ</th>
|
||||
<th width="25%" class="text-right">'.moneyFormat(abs($totale_passivo)).'</th>
|
||||
<th width="25%" class="text-right">'.moneyFormat(abs($totale_passivo),2).'</th>
|
||||
</tr>
|
||||
<tr>';
|
||||
|
||||
|
@ -63,13 +63,13 @@ if (get('lev') == '2' || get('lev') == '3') {
|
|||
<th></th>
|
||||
<th></th>
|
||||
<th>UTILE</th>
|
||||
<th class="text-right">'.moneyFormat(abs($utile_perdita['totale'])).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($utile_perdita['totale']),2).'</th>
|
||||
</tr>';
|
||||
$totale_passivo = abs($totale_passivo + $utile_perdita['totale']);
|
||||
} else {
|
||||
echo '
|
||||
<th>PERDITA</th>
|
||||
<th class="text-right">'.moneyFormat(abs($utile_perdita['totale'])).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($utile_perdita['totale']),2).'</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>';
|
||||
|
@ -79,9 +79,9 @@ if (get('lev') == '2' || get('lev') == '3') {
|
|||
echo '
|
||||
<tr>
|
||||
<th>TOTALE A PAREGGIO</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_attivo)).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_attivo),2).'</th>
|
||||
<th>TOTALE A PAREGGIO</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_passivo)).'</th>
|
||||
<th class="text-right">'.moneyFormat(abs($totale_passivo),2).'</th>
|
||||
</tr>
|
||||
</table>';
|
||||
}
|
||||
|
|
|
@ -52,11 +52,11 @@ foreach ($iva as $descrizione => $tot_iva) {
|
|||
</td>
|
||||
|
||||
<td class="text-right">
|
||||
'.moneyFormat($somma_totale).'
|
||||
'.moneyFormat($somma_totale, 2).'
|
||||
</td>
|
||||
|
||||
<td class="text-right">
|
||||
'.moneyFormat($somma_iva).'
|
||||
'.moneyFormat($somma_iva, 2).'
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
|
@ -68,8 +68,8 @@ echo '
|
|||
<td class="text-right">
|
||||
<b>'.tr('Totale', [], ['upper' => true]).':</b>
|
||||
</td>
|
||||
<td class="text-right">'.moneyFormat($totale_subtotale).'</td>
|
||||
<td class="text-right">'.moneyFormat($totale_iva).'</td>
|
||||
<td class="text-right">'.moneyFormat($totale_subtotale, 2).'</td>
|
||||
<td class="text-right">'.moneyFormat($totale_iva, 2).'</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>';
|
||||
|
|
|
@ -33,13 +33,13 @@ echo '
|
|||
<td>'.($different ? Translator::datetoLocale($record['data']) : '').'</td>
|
||||
<td>'.($different ? $record['codice_tipo_documento_fe'] : '').'</td>
|
||||
<td>'.($different ? $record['codice_anagrafica'].' '.safe_truncate(mb_strtoupper(html_entity_decode($record['ragione_sociale']), 'UTF-8'), 50) : '').'</td>
|
||||
<td class="text-right">'.moneyFormat($record['totale']).'</td>';
|
||||
<td class="text-right">'.moneyFormat($record['totale'], 2).'</td>';
|
||||
|
||||
echo '
|
||||
<td class="text-right">'.moneyFormat($record['subtotale']).'</td>
|
||||
<td class="text-right">'.moneyFormat($record['subtotale'], 2).'</td>
|
||||
<td class="text-left">'.Translator::numberToLocale($record['percentuale'], 0).'</td>
|
||||
<td class="text-left">'.$record['descrizione'].'</td>
|
||||
<td class="text-right">'.moneyFormat($record['iva']).'</td>
|
||||
<td class="text-right">'.moneyFormat($record['iva'], 2).'</td>
|
||||
</tr>';
|
||||
|
||||
$iva[$record['descrizione']][] = $record['iva'];
|
||||
|
|
|
@ -107,19 +107,19 @@ foreach ($anagrafiche as $i => $anagrafica) {
|
|||
// Imponible
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.moneyFormat($riga['imponibile']).'
|
||||
'.moneyFormat($riga['imponibile'], 2).'
|
||||
</td>';
|
||||
|
||||
// IVA
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.moneyFormat($riga['iva']).'
|
||||
'.moneyFormat($riga['iva'], 2).'
|
||||
</td>';
|
||||
|
||||
// Totale
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.moneyFormat($riga['totale']).'
|
||||
'.moneyFormat($riga['totale'], 2).'
|
||||
</td>
|
||||
</tr>';
|
||||
|
||||
|
@ -146,7 +146,7 @@ echo '
|
|||
</td>
|
||||
|
||||
<th colspan="3" class="text-center">
|
||||
<b>'.moneyFormat(sum($imponibile)).'</b>
|
||||
<b>'.moneyFormat(sum($imponibile), 2).'</b>
|
||||
</th>
|
||||
</tr>';
|
||||
|
||||
|
@ -162,7 +162,7 @@ foreach ($iva as $desc => $values) {
|
|||
</td>
|
||||
|
||||
<th colspan="3" class="text-center">
|
||||
<b>'.moneyFormat($sum).'</b>
|
||||
<b>'.moneyFormat($sum, 2).'</b>
|
||||
</th>
|
||||
</tr>';
|
||||
|
||||
|
@ -177,7 +177,7 @@ echo '
|
|||
</td>
|
||||
|
||||
<th colspan="3" class="text-center">
|
||||
<b>'.moneyFormat($totale_iva).'</b>
|
||||
<b>'.moneyFormat($totale_iva, 2).'</b>
|
||||
</th>
|
||||
</tr>';
|
||||
|
||||
|
@ -188,7 +188,7 @@ echo '
|
|||
<b>'.tr('Totale', [], ['upper' => true]).':</b>
|
||||
</td>
|
||||
<th colspan="3" class="text-center">
|
||||
<b>'.moneyFormat(sum($totale)).'</b>
|
||||
<b>'.moneyFormat(sum($totale), 2).'</b>
|
||||
</th>
|
||||
</tr>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue