diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 59f2ce242e5..f90464a192e 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1152,6 +1152,7 @@ else * */ $file = FAC_OUTPUTDIR . "/" . $fac->ref . "/" . $fac->ref . ".pdf"; + $filedetail = FAC_OUTPUTDIR . "/" . $fac->ref . "/" . $fac->ref . "-detail.pdf"; print "'; print ''; + if (file_exists($filedetail)) // facture détaillée supplémentaire + { + $encfile = urlencode($filedetail); + print ""; + + print ''; + print ''; + print ''; + print ''; + } + print "
"; @@ -1169,6 +1170,17 @@ else print ''.strftime("%d %b %Y %H:%M:%S",filemtime($file)).'
Facture détaillée'.$fac->ref.'-detail.pdf'.filesize($filedetail). ' bytes'.strftime("%d %b %Y %H:%M:%S",filemtime($filedetail)).'
\n"; }