From 3206b0156a6e97c0c946844211434f686f7a8cf3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 25 May 2004 13:51:44 +0000 Subject: [PATCH] Modification des messages d'erreur --- htdocs/commande/commande.class.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index c7a3e4f0660..e690178fb66 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -77,6 +77,12 @@ class Commande } $this->soc_id = $propal->soc_id; + + /* Définit la société comme un client */ + $soc = new Societe($this->db); + $soc->id = $this->soc_id; + $soc->set_as_client(); + $this->propale_id = $propal->id; return $this->create($user); } @@ -115,12 +121,12 @@ class Commande } else { - print "Impossible de lire " ; + print "Impossible de lire le module de numérotation"; } } else { - print "Impossible de lire " ; + print "Le module de numérotation n'est pas définit" ; } } return $result ;