From 136bd45f6da361e6e28552d52be1a9bbd7dd8d29 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 27 May 2006 13:13:44 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20le=20projet=20n'=E9tait=20pas=20r=E9cup?= =?UTF-8?q?=E9r=E9=20=E0=20la=20cr=E9ation=20d'un=20commande?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/commande.class.php | 5 +++-- htdocs/commande/fiche.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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").'';