From 31133bcf6bb797a97d3bc956ffd1f6db9f1316fd Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 30 Dec 2004 15:51:02 +0000 Subject: [PATCH] =?UTF-8?q?Modification=20pour=20r=E9cup=E9rer=20le=20tota?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/bon-prelevement.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/bon-prelevement.class.php b/htdocs/bon-prelevement.class.php index e4defa16708..1adaea150f9 100644 --- a/htdocs/bon-prelevement.class.php +++ b/htdocs/bon-prelevement.class.php @@ -33,6 +33,7 @@ class BonPrelevement var $emetteur_code_guichet; var $emetteur_numero_compte; var $emetteur_code_etablissement; + var $total; function BonPrelevement($DB, $filename) { @@ -65,7 +66,7 @@ class BonPrelevement $nbfactures = sizeof($this->factures); - $total = 0; + $this->total = 0; for ($i = 0 ; $i < $nbfactures ; $i++) { @@ -78,7 +79,7 @@ class BonPrelevement if ($fac->client->bank_account->verif()) { - $total = $total + $fac->total_ttc; + $this->total = $this->total + $fac->total_ttc; $this->EnregDestinataire($fac); } @@ -89,7 +90,7 @@ class BonPrelevement } } - $this->EnregTotal($total); + $this->EnregTotal($this->total); fclose($this->file); }