From 4ff465c08aa47198167e52e694272bf7160156e8 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 21 Jul 2003 13:18:27 +0000 Subject: [PATCH] Suppression des francs --- htdocs/compta/bank/account.php3 | 46 +++++++++++++-------------------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/htdocs/compta/bank/account.php3 b/htdocs/compta/bank/account.php3 index a4bccee6daf..3ff2c75b492 100644 --- a/htdocs/compta/bank/account.php3 +++ b/htdocs/compta/bank/account.php3 @@ -1,8 +1,5 @@ - * - * $Id$ - * $Source$ +/* Copyright (C) 2001-2003 Rodolphe Quiedeville * * 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$ + * */ /* @@ -110,7 +110,6 @@ if ($account) print ''; print ''; print "-"; - print "-"; print ''; print "\n"; print ""; @@ -125,8 +124,7 @@ if ($account) print "Débit"; print "Crédit"; print "Solde"; - print "Rel"; - print "Francs"; + print "Relevé"; print "\n"; $sql = "SELECT count(*) FROM llx_bank"; @@ -183,6 +181,11 @@ if ($account) $sql .= " AND b.amount = -".$req_debit; } + if ($HTTP_POST_VARS["req_desc"]) + { + $sql .= " AND lower(b.label) like '%".strtolower($HTTP_POST_VARS["req_desc"])."%'"; + } + if ($vue) { if ($vue == 'credit') @@ -195,7 +198,7 @@ if ($account) } } $sql .= " ORDER BY b.dateo ASC"; - + $result = $db->query($sql); if ($result) { @@ -217,10 +220,8 @@ if ($account) { print " "; print "".price($total)." "; - print "".francs($total)."\n"; print ' '; - $psol = 1; - + $psol = 1; } else { @@ -232,7 +233,6 @@ if ($account) print " "; print "".price($total - $objp->amount).""; print " "; - print ''.francs($total - $objp->amount).''; print ''; print ''; print ''; @@ -300,22 +300,12 @@ if ($account) { print "rowid&account=$account\">[Del]"; } - - if ($action !='search') - { - print "".francs($objp->amount)."\n"; - } - else - { - print '-'; - } - + print ""; } } - - + $i++; } $db->free(); @@ -327,13 +317,13 @@ if ($account) if ($sep) { print " "; - print "".price($total)." ".francs($total)."\n"; + print "".price($total)." \n"; } else { print " "; - print "".price($total)." ".francs($total)."\n"; + print "".price($total)." \n"; print ""; print ''; print ''; @@ -351,10 +341,10 @@ if ($account) print ''; print ''; print ''; - print ""; + print ""; print 'YYYYMMDD0000.00'; - print ''; + print ''; }