diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index fa53df14ab8..5e21cb43da2 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1212,18 +1212,22 @@ else /* * Documents générés * + * Le fichier de facture détaillée est de la forme + * + * REFFACTURE-XXXXXX-detail.pdf ou XXXXX est une forme diverse + * */ $forbidden_chars=array("/","\\",":","*","?","\"","<",">","|","[","]",",",";","="); $facref = str_replace($forbidden_chars,"_",$fac->ref); $file = $conf->facture->dir_output . "/" . $facref . "/" . $facref . ".pdf"; - $filedetail = $conf->facture->dir_output . "/" . $facref . "/" . $facref . "-detail.pdf"; - $relativepath = "${facref}/${facref}.pdf"; - $relativepathdetail = "${facref}/${facref}-detail.pdf"; - $var=true; - - print "
"; + $relativepath = "${facref}/${facref}.pdf"; + $relativepathdetail = "${facref}/${facref}-detail.pdf"; + + $var=true; + + print '"; - print ''; - print ''; - print ''; + print ''; + print ''; + print ''; print ''; } }
'; if (file_exists($file)) { @@ -1247,9 +1251,9 @@ else { print "
Facture détaillée'.$fac->ref.'-detail.pdf'.filesize($filedetail). ' bytes'.strftime("%d %b %Y %H:%M:%S",filemtime($filedetail)).''.$file.''.filesize($dir.$file). ' bytes'.strftime("%d %b %Y %H:%M:%S",filemtime($dir.$file)).'