Suppression des francs
This commit is contained in:
parent
66154e97bb
commit
1d45aed9d0
@ -1,8 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -18,6 +15,9 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
require("./pre.inc.php3");
|
||||
@ -42,29 +42,26 @@ function valeur($sql)
|
||||
print_titre("Bilan");
|
||||
|
||||
print "<TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">";
|
||||
print "<TR class=\"liste_titre\">";
|
||||
print "<td>Description</td><td align=\"right\">Montant</TD><td align=\"right\">francs</TD>";
|
||||
print "</TR>\n";
|
||||
|
||||
$var=!$var;
|
||||
$sql = "SELECT sum(amount) FROM llx_paiement";
|
||||
$paiem = valeur($sql);
|
||||
print "<tr $bc[$var]><td>Somme des paiements</td><td align=\"right\">".price($paiem)."</td><td align=\"right\">".francs($paiem)."</td></tr>";
|
||||
print "<tr $bc[$var]><td>Somme des paiements</td><td align=\"right\">".price($paiem)."</td></tr>";
|
||||
|
||||
$var=!$var;
|
||||
$sql = "SELECT sum(amount) FROM llx_bank WHERE amount > 0";
|
||||
$credits = valeur($sql);
|
||||
print "<tr $bc[$var]><td>Somme des credits</td><td align=\"right\">".price($credits)."</td><td align=\"right\">".francs($credits)."</td></tr>";
|
||||
print "<tr $bc[$var]><td>Somme des credits</td><td align=\"right\">".price($credits)."</td></tr>";
|
||||
|
||||
$var=!$var;
|
||||
$sql = "SELECT sum(amount) FROM llx_bank WHERE amount < 0";
|
||||
$debits = valeur($sql);
|
||||
print "<tr $bc[$var]><td>Somme des debits</td><td align=\"right\">".price($debits)."</td><td align=\"right\">".francs($debits)."</td></tr>";
|
||||
print "<tr $bc[$var]><td>Somme des debits</td><td align=\"right\">".price($debits)."</td></tr>";
|
||||
|
||||
$var=!$var;
|
||||
$sql = "SELECT sum(amount) FROM llx_bank ";
|
||||
$solde = valeur($sql);
|
||||
print "<tr $bc[$var]><td>Solde compte</td><td align=\"right\">".price($solde)."</td><td align=\"right\">".francs($solde)."</td></tr>";
|
||||
print "<tr $bc[$var]><td>Solde compte</td><td align=\"right\">".price($solde)."</td></tr>";
|
||||
|
||||
|
||||
print "</table>";
|
||||
|
||||
@ -124,15 +124,12 @@ else
|
||||
|
||||
print "<td><a href=\"ligne.php3?rowid=$objp->rowid\">$objp->label</a></td>";
|
||||
print "<td align=\"right\">".price(abs($objp->amount))."</td>";
|
||||
print "<td align=\"right\"><small>".francs(abs($objp->amount))."</small></td>";
|
||||
|
||||
print "</tr>";
|
||||
$i++;
|
||||
$total = $total + $objp->amount;
|
||||
}
|
||||
$db->free();
|
||||
print "<tr><td colspan=\"2\" align=\"right\">Total</td><td align=\"right\"><b>".price(abs($total))."</b></td><td>euros</td></tr>";
|
||||
print "<tr><td colspan=\"2\" align=\"right\"><small>soit</td><td align=\"right\"><small>".francs(abs($total))."</td><td><small>francs</small></td></tr>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -84,7 +84,7 @@ function propals ($db, $year, $month) {
|
||||
}
|
||||
print "<tr><td align=\"right\" colspan=\"4\">Total : <b>".price($subtotal)."</b></td>\n";
|
||||
print "<td align=\"left\">Euros HT</td></tr>\n";
|
||||
print "<tr><td colspan=\"2\" align=\"right\"><b>Total ~ ".francs($total) ." FF HT</b></td>";
|
||||
print "<tr>";
|
||||
print "<td colspan=\"2\" align=\"right\"><b>Total : ".price($total)."</b></td>";
|
||||
print "<td align=\"left\"><b>Euros HT</b></td></tr>";
|
||||
print "</TABLE>";
|
||||
@ -142,8 +142,7 @@ function factures ($db, $year, $month, $paye) {
|
||||
|
||||
$i++;
|
||||
}
|
||||
print "<tr><td colspan=\"3\" align=\"right\"><b>Total ~ ".francs($total)." FF HT</b></td>";
|
||||
print "<td align=\"right\"><b>Total : ".price($total)."</b></td><td></td></tr>";
|
||||
print "<tr><td align=\"right\"><b>Total : ".price($total)."</b></td><td></td></tr>";
|
||||
print "</TABLE>";
|
||||
$db->free();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user