Update bonprelevement.class.php

This commit is contained in:
Frédéric FRANCE 2016-02-29 22:59:08 +01:00
parent 2eaa21ea5c
commit 10d04e63c1

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++;
} }
} }