From c174eba124da86f54b8398359a718f0c41cc6da1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 6 Sep 2005 10:56:59 +0000 Subject: [PATCH] Bugfix --- htdocs/telephonie/ligne/factures.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/htdocs/telephonie/ligne/factures.php b/htdocs/telephonie/ligne/factures.php index a7e6634454d..cc861067feb 100644 --- a/htdocs/telephonie/ligne/factures.php +++ b/htdocs/telephonie/ligne/factures.php @@ -154,7 +154,13 @@ if ($_GET["id"] or $_GET["numero"]) $client_facture->fetch($ligne->client_facture_id); print 'Client Facturé'.$client_facture->nom.''; - print ''; + + $fac = new Facture($db); + $fac->fetch($facs[$facnum]); + + print 'Facture'.$fac->ref.''; + + print "\n"; } /* * @@ -162,15 +168,12 @@ if ($_GET["id"] or $_GET["numero"]) * */ - $fac = new Facture($db); - $fac->fetch($facs[$facnum]); - $file = DOL_DATA_ROOT."/facture/".$fac->ref."/".$fac->ref.".pdf"; $file_img = DOL_DATA_ROOT."/facture/".$fac->ref."/".$fac->ref.".pdf.png"; if (file_exists($file_img)) { - print '
'; + print '
'; } else { @@ -180,7 +183,7 @@ if ($_GET["id"] or $_GET["numero"]) if (file_exists($file_img)) { - print '
'; + print '
'; } else {