From 527fb4e47cd9aad3c37d1117f9ff828f3c31f0f7 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 15 Jun 2005 14:02:08 +0000 Subject: [PATCH] Gestion des trasnferts --- .../fournisseur/commande/commande.textp.class.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/htdocs/telephonie/fournisseur/commande/commande.textp.class.php b/htdocs/telephonie/fournisseur/commande/commande.textp.class.php index 2c584315d90..5d792254cbd 100644 --- a/htdocs/telephonie/fournisseur/commande/commande.textp.class.php +++ b/htdocs/telephonie/fournisseur/commande/commande.textp.class.php @@ -81,13 +81,13 @@ class CommandeMethodeTextP extends CommandeMethode */ function MailFile($filename) { - $subject = "Commande de Lignes N° ".$this->commande_id; + $subject = "Commande de Lignes Numero : ".$this->commande_id; $sendto = $this->fourn->email_commande; $from = TELEPHONIE_LIGNE_COMMANDE_EMAIL_BCC; - $message = "Bonjour,\n\nVeuillez trouver ci-joint notre commande numéro : ".$this->commande_id.".\n\n"; + $message = "Bonjour,\n\nVeuillez trouver ci-joint notre commande num : ".$this->commande_id.".\n\n"; $message .= "\n\nCordialement,\n\n"; $message .= "-- \n"; @@ -146,7 +146,7 @@ class CommandeMethodeTextP extends CommandeMethode */ $sql = $sqlall; - $sql .= " AND l.statut in (1,4)"; + $sql .= " AND l.statut in (1,4,8)"; $sql .= " ORDER BY l.statut ASC"; $resql = $this->db->query($sql); @@ -204,6 +204,10 @@ class CommandeMethodeTextP extends CommandeMethode { $lint->set_statut($this->user, 5); } + if ($lint->statut == 8) + { + $lint->set_statut($this->user, 2); + } } return 0;