From a0af4204d56981e3b3aec6fdd17fb1f5661234e3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 24 Jan 2004 19:40:05 +0000 Subject: [PATCH] L'auteur de la facture fournisseur s'affiche correctement. --- htdocs/fourn/facture/fiche.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 13f7e36ff39..671b2c58d40 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -288,8 +288,14 @@ else print_date_select($obj->df); print ""; - - print "Auteur :".' '.""; + + $authorfullname=" "; + if ($fac->author) { + $author = new User($db, $fac->author); + $author->fetch(''); + $authorfullname=$author->fullname; + } + print "Auteur :$authorfullname"; print ""; print ""; print ""; @@ -359,7 +365,14 @@ else print "Libellé"; print $obj->libelle; print ""; - print "Auteur$fac->author "; + + $authorfullname=" "; + if ($fac->author) { + $author = new User($db, $fac->author); + $author->fetch(''); + $authorfullname=$author->fullname; + } + print "Auteur$authorfullname"; print "".' Total HT'.price($fac->total_ht).""; print 'TVA'.price($fac->total_tva)."";