diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php index c3c6a0c4d00..f5db6dff7fd 100644 --- a/htdocs/compta/bank/releve.php +++ b/htdocs/compta/bank/releve.php @@ -20,22 +20,28 @@ * $Source$ */ -/* $num - * $rel - * $ve - */ +/*! + \file htdocs/compta/bank/releve.php + \ingroup banque + \brief Page d'affichage d'un relevé + \version $Revision$ +*/ + require("./pre.inc.php"); +$langs->load("companies"); + + if (!$user->rights->banque->lire) accessforbidden(); + if ($_GET["action"] == 'dvnext') { $ac = new Account($db); $ac->datev_next($_GET["dvid"]); } - if ($_GET["action"] == 'dvprev') { $ac = new Account($db); @@ -50,14 +56,11 @@ llxHeader(); $acct = new Account($db); $acct->fetch($_GET["account"]); - if (! isset($_GET["num"])) { /* - * * Vue liste tous relevés confondus * - * */ if ($page == -1) { $page = 0 ; } @@ -81,7 +84,7 @@ if (! isset($_GET["num"])) print_barre_liste("Relevés bancaires, compte : id."\">".$acct->label."", $page, "releve.php","&account=$account",$sortfield,$sortorder,'',$numrows); print '
'; - print ''; + print '
'; print ""; print ""; @@ -157,12 +160,12 @@ else print ""; print ""; - print '
Relevé
'; + print '
'; print ""; - print ''; - print ''; - print ''; - print ''; + print ''; + print ''; + print ''; + print ''; print ''; print "\n"; @@ -189,8 +192,10 @@ else $var=True; $numrows = $db->num_rows(); $i = 0; - print ""; - print "\n"; + + // Ligne Solde début releve + print ""; + print "\n"; while ($i < $numrows) { @@ -266,8 +271,10 @@ else } $db->free(); } - print ""; - print "\n"; + // Ligne Total + print ""; + // Ligne Solde + print "\n"; print "
Date OpeValeur'.$langs->trans("Type").''.$langs->trans("Description").'DebitCreditSoldeDate OpeDate Valeur'.$langs->trans("Type").''.$langs->trans("Description").''.$langs->trans("Debit").''.$langs->trans("Credit").''.$langs->trans("Solde").' 
id."\">Vue etendue ".price($total)." 
id."\">Vue etendue".$langs->trans("Solde initial")." :".price($total)." 
Total :".price($totald)."".price($totalc)." 
Solde :".price($total)." 
".$langs->trans("Total")." :".price($totald)."".price($totalc)."  
 ".$langs->trans("Solde final")." :".price($total)." 
\n"; }