From 7304671a915a41078be63be86c6e3208685abf38 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 7 Nov 2003 09:40:35 +0000 Subject: [PATCH] =?UTF-8?q?Ajoute=20la=20liste=20des=20commandes=20associ?= =?UTF-8?q?=E9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/projet/fiche.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) 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 *