diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index ed80f3d11ce..0fc0f430b4c 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -23,6 +23,7 @@ require("./pre.inc.php"); require("./project.class.php"); require("../propal.class.php"); require("../facture.class.php"); +require("../commande/commande.class.php"); if ($HTTP_POST_VARS["action"] == 'update') { @@ -177,6 +178,41 @@ if ($action == 'create') print 'Total : '.price($total).''; print ''.MAIN_MONNAIE.' HT'; } + /* + * Commandes + * + */ + $commandes = $projet->get_commande_list(); + + if (sizeof($commandes)>0 && is_array($commandes)) + { + print_titre('Listes des commandes associées au projet'); + print ''; + + print ''; + print ''; + + for ($i = 0; $ifetch($commandes[$i]); + + $var=!$var; + print ""; + print "\n"; + print ''; + print ''; + + $total = $total + $commande->total_ht; + } + + print ''; + print ''; + print ''; + print "
RéfDatePrix
id\">$commande->ref'.strftime("%d %B %Y",$commande->date).''.price($commande->total_ht).'
'.$i.' commandesTotal : '.price($total).''.MAIN_MONNAIE.' HT
"; + } + + /* * Factures *