From a7791afaace310b1e2b93c72d4cb87c641e25db3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Aug 2005 19:32:59 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20N'affiche=20pas=20les=20comptes=20caisse?= =?UTF-8?q?=20dans=20la=20liste=20des=20comptes=20pour=20paiement=20par=20?= =?UTF-8?q?rib=20ou=20ch=E8que.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/facture.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index d6e07237cae..1db72516b9b 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -236,14 +236,17 @@ $var=!$var; print ''; print "Proposer paiement par RIB sur le compte"; print ""; -$sql = "SELECT rowid, label FROM ".MAIN_DB_PREFIX."bank_account where clos = 0"; +$sql = "SELECT rowid, label"; +$sql.= " FROM ".MAIN_DB_PREFIX."bank_account"; +$sql.= " where clos = 0"; +$sql.= " and courant = 1"; if ($db->query($sql)) { $num = $db->num_rows(); $i = 0; if ($num > 0) { print ""; - print ''; + print ''; while ($i < $num) { $var=!$var;