*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*
*/
require("./pre.inc.php");
require("./project.class.php");
require("../propal.class.php");
require("../facture.class.php");
require("../commande/commande.class.php");
llxHeader("","../");
$projet = new Project($db);
$projet->fetch($id);
$h=0;
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
$head[$h][1] = 'Fiche projet';
$head[$h+1][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
$head[$h+1][1] = 'Prop. Commerciales';
$head[$h+2][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
$head[$h+2][1] = 'Commandes';
$head[$h+3][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
$head[$h+3][1] = 'Factures';
dolibarr_fiche_head($head, 1);
/*
*
*
*
*/
$propales = array();
$projet->societe->fetch($projet->societe->id);
print '
';
$propales = $projet->get_propal_list();
if (sizeof($propales)>0 && is_array($propales))
{
print_titre('Listes des propositions commerciales associées au projet');
print '';
print '';
print '| Réf | Date | Montant | |
';
for ($i = 0; $ifetch($propales[$i]);
$var=!$var;
print "";
print "| id\">$propale->ref | \n";
print ''.strftime("%d %B %Y",$propale->datep).' | ';
print ''.price($propale->price).' | |
';
$total = $total + $propale->price;
}
print '| '.$i.' propales | | ';
print 'Total : '.price($total).' | ';
print ''.MAIN_MONNAIE.' HT |
';
}
$db->close();
llxFooter("Dernière modification $Date$ révision $Revision$");
?>