From b339be5f543f41daf7ba3f5ebd2c9ac76bbd064a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 31 Mar 2005 08:16:11 +0000 Subject: [PATCH] =?UTF-8?q?Ressort=20la=20r=E9f=E9rence=20et=20l'ID=20de?= =?UTF-8?q?=20l'export=20pour=20utilisation=20hors=20classe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../export/modules/compta.export.class.php | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/htdocs/compta/export/modules/compta.export.class.php b/htdocs/compta/export/modules/compta.export.class.php index bf3eb701d81..a8fec9b2028 100644 --- a/htdocs/compta/export/modules/compta.export.class.php +++ b/htdocs/compta/export/modules/compta.export.class.php @@ -83,17 +83,17 @@ class ComptaExport $sql .= " ORDER BY f.rowid ASC, l.fk_code_ventilation ASC"; - $result = $this->db->query($sql); + $resql = $this->db->query($sql); - if ($result) + if ($resql) { - $num = $this->db->num_rows($result); + $num = $this->db->num_rows($resql); $i = 0; $this->linec = array(); while ($i < $num) { - $obj = $this->db->fetch_object($result); + $obj = $this->db->fetch_object($resql); $this->linec[$i][0] = $obj->datef; $this->linec[$i][1] = $obj->facid; @@ -115,7 +115,7 @@ class ComptaExport $i++; } - $this->db->free($result); + $this->db->free($resql); } return $error; @@ -150,17 +150,17 @@ class ComptaExport $sql .= " ORDER BY f.rowid ASC, p.rowid ASC"; - $result = $this->db->query($sql); + $resql = $this->db->query($sql); - if ($result) + if ($resql) { - $num = $this->db->num_rows($result); + $num = $this->db->num_rows($resql); $i = 0; $this->linep = array(); while ($i < $num) { - $obj = $this->db->fetch_object($result); + $obj = $this->db->fetch_object($resql); $this->linep[$i][0] = $obj->datep; $this->linep[$i][1] = $obj->paymentid; @@ -174,7 +174,7 @@ class ComptaExport $i++; } - $this->db->free($result); + $this->db->free($resql); } else @@ -210,6 +210,9 @@ class ComptaExport $objexport = new $objexport_name($this->db, $this->user); $objexport->Export($this->linec, $this->linep); + + $this->id = $objexport->id; + $this->ref = $objexport->ref; } }