From 354d606acc395fef1996425998e4003155d8db5e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 14 Feb 2005 09:21:34 +0000 Subject: [PATCH] Ajout d'une ligne d'en-tete --- .../fournisseur/commande/commande.text.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/telephonie/fournisseur/commande/commande.text.class.php b/htdocs/telephonie/fournisseur/commande/commande.text.class.php index 30239f55fd4..4b352a30820 100644 --- a/htdocs/telephonie/fournisseur/commande/commande.text.class.php +++ b/htdocs/telephonie/fournisseur/commande/commande.text.class.php @@ -150,6 +150,10 @@ class CommandeMethodeText if ($fp) { + fwrite ($fp, "Numcli;"); + fwrite ($fp, "nomclient;"); + fwrite ($fp, "NDI\n"); + $ligneids = array(); $sqlall = "SELECT s.nom, s.idp as socid, l.ligne, l.statut, l.rowid"; @@ -167,14 +171,13 @@ class CommandeMethodeText /* * */ - $sql = $sqlall; $sql .= " AND l.statut in (1,4)"; $sql .= " ORDER BY l.statut ASC"; $result = $this->db->query($sql); - + if ($result) { $i = 0; @@ -229,7 +232,6 @@ class CommandeMethodeText $lint->set_statut($this->user, 5); } } - return 0;