From cc3f76494dcf9c8401b91c6ac33c69fa43d8d741 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 Apr 2005 14:18:16 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20De=20vieilles=20factures=20n'=E9taient?= =?UTF-8?q?=20plus=20visible=20du=20fait=20de=20l'ajout=20du=20champ=20fk?= =?UTF-8?q?=5Fcond=5Fregelement=20avec=20une=20valeur=20nulle=20alors=20qu?= =?UTF-8?q?'il=20est=20li=E9=20dans=20les=20select.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 6 +++--- htdocs/compta/recap-client.php | 11 ++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 2a9cfceda9b..cc4924453e9 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -632,7 +632,7 @@ if ($_GET["action"] == 'create') } for ($i = 1 ; $i <= $NBLINES ; $i++) { - print ''; + print ''; print ''; print '%'; print ' '; @@ -666,7 +666,7 @@ if ($_GET["action"] == 'create') if ($num > 0) { - print 'Factures récurrentes : '; print ''; while ($i < $num) { @@ -1620,7 +1620,7 @@ else } print_barre_liste($langs->trans("BillsCustomers")." ".($socidp?" $soc->nom":""),$page,"facture.php","&socidp=$socidp",$sortfield,$sortorder,'',$num); - + $i = 0; print ''; print ''; diff --git a/htdocs/compta/recap-client.php b/htdocs/compta/recap-client.php index 8a095fb340b..4b51e1458ee 100644 --- a/htdocs/compta/recap-client.php +++ b/htdocs/compta/recap-client.php @@ -21,7 +21,8 @@ * */ -/** \file htdocs/compta/fiche.php +/** + \file htdocs/compta/fiche.php \ingroup compta \brief Page de fiche compta \version $Revision$ @@ -206,8 +207,12 @@ if ($socid > 0) $var=!$var; $fac = new Facture($db); - $fac->fetch($facs[$i]); - + $ret=$fac->fetch($facs[$i]); + if ($ret < 0) + { + print $fac->error."
"; + continue; + } print ""; print "\n";
".dolibarr_print_date($fac->date)."