From 72ef227806f0236179f55a5d6a3fce66016d2a66 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 3 Feb 2003 12:29:42 +0000 Subject: [PATCH] =?UTF-8?q?Impression=20de=20la=20liste=20des=20factures?= =?UTF-8?q?=20impay=E9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/index.php3 | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/index.php3 b/htdocs/compta/index.php3 index 744202e25d0..473a4acb081 100644 --- a/htdocs/compta/index.php3 +++ b/htdocs/compta/index.php3 @@ -124,10 +124,19 @@ print ""; print ''.translate("Bills").''; print "\n"; -$sql = "SELECT count(*) FROM llx_facture WHERE paye = 0"; -if (valeur($sql)) { - $var=!$var; - print "Non payées".valeur($sql).""; +$sql = "SELECT facnumber, rowid FROM llx_facture WHERE paye = 0"; +if ( $db->query($sql) ) +{ + $num = $db->num_rows(); + $i = 0; + + while ($i < $num) + { + $obj = $db->fetch_object( $i); + $var=!$var; + print ''.$obj->facnumber.""; + $i++; + } } print "
";