ajout de la fonction fetch_contact pour récupérer le détail d'un contact propal, commande,
facture...
This commit is contained in:
parent
fc7dfdf863
commit
c37521eea2
@ -935,19 +935,7 @@ class Commande extends CommonObject
|
|||||||
$adresse->fetch_adresse_livraison($idadresse);
|
$adresse->fetch_adresse_livraison($idadresse);
|
||||||
$this->adresse = $adresse;
|
$this->adresse = $adresse;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
function fetch_contact_commande($id)
|
|
||||||
{
|
|
||||||
$idcontact = $id;
|
|
||||||
$contact = new Contact($this->db);
|
|
||||||
$contact->fetch($idcontact);
|
|
||||||
$this->contact = $contact;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Renvoie un tableau avec les expéditions par ligne
|
* \brief Renvoie un tableau avec les expéditions par ligne
|
||||||
|
|||||||
@ -476,19 +476,6 @@ class Facture extends CommonObject
|
|||||||
$this->client = $client;
|
$this->client = $client;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
function fetch_contact_facture($id)
|
|
||||||
{
|
|
||||||
$idcontact = $id;
|
|
||||||
$contact = new Contact($this->db);
|
|
||||||
$contact->fetch($idcontact);
|
|
||||||
$this->contact = $contact;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Classe la facture dans un projet
|
* \brief Classe la facture dans un projet
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user