From e00ba56ea4103d2eead184d30ac3dfb6ee4461cf Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 22 Oct 2003 14:24:13 +0000 Subject: [PATCH] Ajout projet Mise aux normes --- htdocs/compta/facture.php | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index fdd688bba82..efa97cb02c9 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -615,6 +615,16 @@ else print "Date"; print "".strftime("%A %d %B %Y",$fac->date)."\n"; print "Date limite de réglement : " . strftime("%d %B %Y",$fac->date_lim_reglement) .""; + + print 'Projet'; + if ($fac->projetid > 0) + { + $projet = New Project($db); + $projet->fetch($fac->projetid); + print ''.$projet->title.''; + } + print " Paiements"; + print "Auteur$author->fullname"; if ($fac->remise_percent > 0) @@ -637,11 +647,8 @@ else { $num = $db->num_rows(); $i = 0; $total = 0; - print "Paiements"; echo ''; - print ""; - print ""; - print ""; + print ''; print ""; if (! $fac->paye) { @@ -660,7 +667,7 @@ else print '\n"; if (! $fac->paye && $user->rights->facture->paiement) { - print '"; $total = $total + $objp->amount; @@ -770,8 +777,8 @@ else print '\n"; if ($fac->statut == 0 && $user->rights->facture->creer) { - print ''; - print ''; + print ''; + print ''; } else { @@ -939,7 +946,7 @@ else { print "
DateType
DateTypeMontant '.price($objp->amount)."$_MONNAIEDel'; + print 'Del'; } print "
'.price($objp->subprice)."deleditdeledit
"; print_titre("Documents"); - print ''; + print '
'; print ""; print ''; @@ -1166,16 +1173,16 @@ else if ($result) { $num = $db->num_rows(); - print_barre_liste("Factures",$page,$PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder,'',$num); + print_barre_liste("Factures",$page,$PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder,'',$num); $i = 0; print "
Facture PDFref."/".$fac->ref.'.pdf">'.$fac->ref.'.pdf
"; print ''; print ''; print ''; print ''; print "\n"; @@ -1216,7 +1223,7 @@ else $m = strftime("%m",$objp->df); print strftime("%d",$objp->df)."\n"; - print ' '; + print ' '; print strftime("%B",$objp->df)."\n"; print ' '; print strftime("%Y",$objp->df)."\n";
Numéro'; - print_liste_field_titre("Société",$PHP_SELF,"s.nom","","&socidp=$socidp"); + print_liste_field_titre("Société",$PHP_SELF,"s.nom","","&socidp=$socidp"); print ''; - print_liste_field_titre("Date",$PHP_SELF,"f.datef","","&socidp=$socidp"); + print_liste_field_titre("Date",$PHP_SELF,"f.datef","","&socidp=$socidp"); print 'Montant