Fix: le projet n'tait pas rcupr la cration d'un commande
This commit is contained in:
parent
727a738360
commit
136bd45f6d
@ -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;
|
||||
|
||||
@ -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 ' <a href=../projet/fiche.php?socidp='.$soc->id.'&action=create>'.$langs->trans("AddProject").'</a>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user