diff --git a/htdocs/compta/prelevement/fiche.php b/htdocs/compta/prelevement/fiche.php
index cb8d5804b5d..68b86046eef 100644
--- a/htdocs/compta/prelevement/fiche.php
+++ b/htdocs/compta/prelevement/fiche.php
@@ -114,9 +114,9 @@ if ($_GET["id"])
print '
| '.$langs->trans("Amount").' | '.price($bon->amount).' |
';
print '| '.$langs->trans("File").' | ';
- $encfile = urlencode(DOL_DATA_ROOT.'/prelevement/bon/'.$bon->ref);
+ $relativepath = 'bon/'.$bon->ref;
- print ''.$bon->ref.'';
+ print ''.$bon->ref.'';
print ' |
';
diff --git a/htdocs/document.php b/htdocs/document.php
index 6cd436271d7..eb222a6e504 100644
--- a/htdocs/document.php
+++ b/htdocs/document.php
@@ -73,7 +73,7 @@ if ($modulepart)
{
$accessallowed=1;
}
- //$original_file=$conf->prelevement->dir_output.'/'.$original_file;
+ $original_file=$conf->prelevement->dir_output.'/'.$original_file;
}
// Wrapping pour les propales