From 13f921be0a67a976a3e8d06efdbc610fc9bd8dd8 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 8 Sep 2004 12:31:25 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20lien=20vers=20la=20facture=20d=E9taill?= =?UTF-8?q?=E9e=20quand=20celle-ci=20existe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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"; }