mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Update releve.php
This commit is contained in:
parent
ca72e5e19f
commit
337eac30c1
|
|
@ -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`,';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user