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)."