Modif gestion de la facture détaillée
This commit is contained in:
parent
c2d4ee8272
commit
c774643287
@ -1223,7 +1223,6 @@ else
|
|||||||
$file = $conf->facture->dir_output . "/" . $facref . "/" . $facref . ".pdf";
|
$file = $conf->facture->dir_output . "/" . $facref . "/" . $facref . ".pdf";
|
||||||
|
|
||||||
$relativepath = "${facref}/${facref}.pdf";
|
$relativepath = "${facref}/${facref}.pdf";
|
||||||
$relativepathdetail = "${facref}/${facref}-detail.pdf";
|
|
||||||
|
|
||||||
$var=true;
|
$var=true;
|
||||||
|
|
||||||
@ -1250,6 +1249,7 @@ else
|
|||||||
if (is_readable($dir.$file) && substr($file, -10) == 'detail.pdf')
|
if (is_readable($dir.$file) && substr($file, -10) == 'detail.pdf')
|
||||||
{
|
{
|
||||||
print "<tr $bc[$var]><td>Facture détaillée</td>";
|
print "<tr $bc[$var]><td>Facture détaillée</td>";
|
||||||
|
$relativepathdetail = "${facref}/$file";
|
||||||
|
|
||||||
print '<td><a href="'.DOL_URL_ROOT . '/document.php?modulepart=facture&file='.urlencode($relativepathdetail).'">'.$file.'</a></td>';
|
print '<td><a href="'.DOL_URL_ROOT . '/document.php?modulepart=facture&file='.urlencode($relativepathdetail).'">'.$file.'</a></td>';
|
||||||
print '<td align="right">'.filesize($dir.$file). ' bytes</td>';
|
print '<td align="right">'.filesize($dir.$file). ' bytes</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user