2
0
forked from Wavyzz/dolibarr

Qual: Mise en facteur des methodes fetch_client et fetch_projet

This commit is contained in:
Laurent Destailleur
2006-06-23 19:40:28 +00:00
parent bc8f0fbc38
commit 8fabb7888a
9 changed files with 54 additions and 88 deletions

View File

@@ -44,9 +44,12 @@ class Commande extends CommonObject
var $element='commande';
var $id ;
var $socidp; // Id client
var $client; // Objet societe client (<28> charger par fetch_client)
var $ref;
var $ref_client;
var $socidp;
var $contactid;
var $projet_id;
var $statut;
@@ -934,18 +937,6 @@ class Commande extends CommonObject
*
*/
function fetch_client()
{
$client = new Societe($this->db);
$client->fetch($this->socidp);
$this->client = $client;
}
/**
*
*
*/
function fetch_adresse_livraison($id)
{
$idadresse = $id;