From cb40b5534bf78600ba63693a37736b8705a71fc3 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 9 May 2006 18:42:48 +0000 Subject: [PATCH] =?UTF-8?q?r=E9cup=E9ration=20de=20l'adresse=20de=20livrai?= =?UTF-8?q?son=20et=20du=20contact=20d'une=20commande?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/commande.class.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 6ef0d0d81fc..6544cb87f85 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -825,6 +825,33 @@ class Commande } return $this->lignes; } + + + /** + * + * + */ + + function fetch_adresse_livraison($id) + { + $idadresse = $id; + $adresse = new Societe($this->db); + $adresse->fetch_adresse_livraison($idadresse); + $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 livraison par ligne