Update releve.php

This commit is contained in:
delcroix Patrick 2017-04-05 21:14:41 +02:00 committed by GitHub
parent ca72e5e19f
commit 337eac30c1

View File

@ -552,7 +552,7 @@ else
dol_print_error($db);
}
}
print Get_attach_files($db,$objp->rowid,$objp->label);
print Get_attach_files($db,$objp->rowid,$num,$objp->label);
print "</td>";
if ($objp->amount < 0)
@ -608,10 +608,11 @@ $db->close();
/*Function to generate the HTML code used to show the file name & download link attached to the Item covered by the bank line
* @param $db Object database object
* @param $bankId int bank line id
* @param $label
* @param $num int bank statement
* @param $label string label used to optimise the sql querry
*
*/
function Get_attach_files($db, $bankId,$label=''){
function Get_attach_files($db, $bankId,$num,$label=''){
$out='';
global$conf;
$sql='SELECT u.url_id, u.type,ff.rowid as id , ff.`ref` AS reff, f.facnumber AS `ref`,';