} else { $saldo = "-" . formatEuro($a_row["Uscite"]); } print "<tr>"; $href = "Admin_Upd_Movimento.php?ID_Movimento="; //print "<td class=\"FacetDataTD\"><a href=\"$href".$a_row["ID_Movimento"]."\">".formatDate($a_row["Data_Valuta"])."</a> </td>"; print "<td class=\"FacetDataTD\">" . $a_row["ID_Movimento"] . " </td>"; print "<td class=\"FacetDataTD\" valign=\"center\"><a href=\"{$href}" . $a_row["ID_Movimento"] . "\">" . $a_row["Data_Valuta"] . "</a> </td>"; print "<td class=\"FacetDataTD\">" . $a_row["Data_Competenza"] . " </td>"; print "<td class=\"FacetDataTD\">" . $a_row["Anno_Bilancio"] . " </td>"; print "<td class=\"FacetDataTD\">" . $a_row["Tipo_Pagamento"] . " </td>"; print "<td class=\"FacetDataTD\">" . $a_row["Cognome"] . " " . $a_row["Nome"] . " " . $a_row["Ragione_Sociale"] . " </td>"; print "<td class=\"FacetDataTD\">" . $a_row["voce"] . " </td>"; print "<td class=\"FacetDataTD\">" . $a_row["Descrizione"] . " </td>"; print "<td class=\"FacetDataTD\">" . formatEuro($a_row["Entrate"]) . " </td>"; print "<td class=\"FacetDataTD\">" . formatEuro($a_row["Uscite"]) . " </td>"; print "<td class=\"FacetDataTD\">" . $banca['Banca'] . " </td>"; if ($saldo <= 0) { $color = "Red"; } else { $color = ""; } print "<td class=\"FacetDataTD\" style=\"color: {$color};\">" . $saldo . "</td>"; print "<td class=\"FacetDataTD\"><a href=\"Admin_Del_Movimento.php?ID_Movimento=" . $a_row["ID_Movimento"] . "\"><img src=\"images/x.gif\" alt=\"Cancella\" border=\"0\"></a></td>"; print "</tr>"; } ?> </table></body></html>
align="right"> <tr> <td>Totale Imponibile</td><td align="right">€ <?php print $form['Imponibile']; ?> </td> </tr> <tr> <td >Totale IVA</td><td align="right">€ <?php print $form['Iva']; ?> </td> </tr> <tr> <td>Totale </td><td align="right">€ <?php print formatEuro($nota['Totale']); ?> </td> </tr> </table> <!-- fine corpo fattura --> <br><br><br><br><br><br> <table cellpadding="10" border=<?php echo $border; ?> > <tr> <td>
$saldo_cliente[$a_row['ID_Cliente']] = $saldo_cliente[$a_row['ID_Cliente']] - $a_row['Entrate'] + $a_row['Uscite']; } } if (!empty($a_row['ID_Fornitore'])) { // $monte_fornitore[$a_row['ID_Fornitore']] = $monte_fornitore[$a_row['ID_Fornitore']] + $a_row['Entrate'] - $a_row['Uscite']; $saldo_fornitore[$a_row['ID_Fornitore']] = $saldo_fornitore[$a_row['ID_Fornitore']] - $a_row['Entrate'] + $a_row['Uscite']; } } // stampo i totali entrate e uscite print "<tr>"; print "</tr>"; print "<tr>"; print "<td colspan=\"4\" align=\"right\" class=\"FacetDataTD\"> TOTALI </td>"; print "<td class=\"FacetDataTD\">" . formatEuro($entrate) . " </td>"; print "<td class=\"FacetDataTD\">" . formatEuro($uscite) . " </td>"; print "<td class=\"FacetDataTD\">" . formatEuro($entrate - $uscite) . " </td>"; print "</tr>"; ?> </table> </body> </html>
align="right"> <tr> <td>Totale Imponibile</td><td align="right">€ <?php print $form['Imponibile']; ?> </td> </tr> <tr> <td >Totale IVA</td><td align="right">€ <?php print $form['Iva']; ?> </td> </tr> <tr> <td>Totale Fattura</td><td align="right">€ <?php print formatEuro($fattura['Totale']); ?> </td> </tr> </table> <!-- fine corpo fattura --> <br><br><br><br><br><br> <table cellpadding="10" width="100%" border=<?php echo $border; ?> > <tr> <td>Scadenza Fattura: <?php print formatDate($fattura['Scadenza']); ?> </td>