Merge pull request #4700 from frederic34/patch-7

Update bonprelevement.class.php
This commit is contained in:
Laurent Destailleur 2016-03-01 01:46:07 +01:00
commit 6bb109d0df

View File

@ -1261,6 +1261,7 @@ class BonPrelevement extends CommonObject
$dateTime_ECMA = dol_print_date($date_actu, '%Y-%m-%dT%H:%M:%S'); $dateTime_ECMA = dol_print_date($date_actu, '%Y-%m-%dT%H:%M:%S');
$fileDebiteurSection = ''; $fileDebiteurSection = '';
$fileEmetteurSection = ''; $fileEmetteurSection = '';
$ListOfFactures = '';
$i = 0; $i = 0;
$j = 0; $j = 0;
$this->total = 0; $this->total = 0;
@ -1277,7 +1278,7 @@ class BonPrelevement extends CommonObject
while ($j < $num) while ($j < $num)
{ {
$objfac = $this->db->fetch_object($resql); $objfac = $this->db->fetch_object($resql);
$ListOfFactures = $ListOfFactures . $objfac->fac . ","; $ListOfFactures .= ($j>0?',':'') . $objfac->fac;
$j++; $j++;
} }
} }