Fix: le projet n'tait pas rcupr la cration d'un commande

This commit is contained in:
Regis Houssin 2006-05-27 13:13:44 +00:00
parent 727a738360
commit 136bd45f6d
2 changed files with 4 additions and 3 deletions

View File

@ -43,6 +43,7 @@ class Commande
var $id ;
var $socidp;
var $contactid;
var $projet_id;
var $statut;
var $facturee;
var $brouillon;
@ -53,8 +54,8 @@ class Commande
var $adresse_livraison_id;
var $date; // Date commande
var $date_livraison; // Date livraison souhaitée
var $remise_percent;
var $remise_absolue;
var $remise_percent;
var $remise_absolue;
// Pour board
var $nbtodo;

View File

@ -616,7 +616,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
if ($conf->projet->enabled)
{
print '<tr><td>'.$langs->trans('Project').'</td><td>';
$numprojet=$html->select_projects($soc->id,$projetid,'projetidp');
$numprojet=$html->select_projects($soc->id,$projetid,'projetid');
if ($numprojet==0)
{
print ' &nbsp; <a href=../projet/fiche.php?socidp='.$soc->id.'&action=create>'.$langs->trans("AddProject").'</a>';