diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index dd4332c1845..8165130adb3 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -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; diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 344afc98156..9678a3a0934 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -616,7 +616,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer) if ($conf->projet->enabled) { print ''.$langs->trans('Project').''; - $numprojet=$html->select_projects($soc->id,$projetid,'projetidp'); + $numprojet=$html->select_projects($soc->id,$projetid,'projetid'); if ($numprojet==0) { print '   id.'&action=create>'.$langs->trans("AddProject").'';