From a7791afaace310b1e2b93c72d4cb87c641e25db3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> 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 '<tr '.$bc[$var].'>'; print "<td>Proposer paiement par RIB sur le compte</td>"; print "<td>"; -$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 "<select name=\"rib\">"; - print '<option value="0">Ne pas afficher</option>'; + print '<option value="0">'.$langs->trans("DoNotShow").'</option>'; while ($i < $num) { $var=!$var; @@ -269,7 +272,10 @@ $var=!$var; print '<tr '.$bc[$var].'>'; print "<td>Proposer paiement par ch�que � l'ordre et adresse du titulaire du compte</td>"; print "<td>"; -$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"; $var=True; if ($db->query($sql)) { @@ -278,7 +284,7 @@ if ($db->query($sql)) if ($num > 0) { print "<select name=\"chq\">"; - print '<option value="0">Ne pas afficher</option>'; + print '<option value="0">'.$langs->trans("DoNotShow").'</option>'; while ($i < $num) { $var=!$var; -- GitLab