From 1895b0a1d66c1e1245f04b9237e37ef825644f23 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 22 Feb 2005 11:48:49 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20infos=20lors=20de=20la=20creation?= =?UTF-8?q?=20d'une=20demande=20de=20pr=E9l=E8vement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/facture.class.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 677a211e071..f9a6f2ca159 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -1217,11 +1217,14 @@ class Facture if ($row[0] == 0) { $sql = "INSERT INTO ".MAIN_DB_PREFIX."prelevement_facture_demande"; - $sql .= " (fk_facture, date_demande, fk_user_demande, code_banque, code_guichet, number)"; - $sql .= " VALUES (".$this->id.",now(),".$user->id.""; + $sql .= " (fk_facture, amount, date_demande, fk_user_demande, code_banque, code_guichet, number, cle_rib)"; + $sql .= " VALUES (".$this->id; + $sql .= ",'".ereg_replace(",",".",$this->total_ttc)."'"; + $sql .= ",now(),".$user->id.""; $sql .= ",'".$soc->bank_account->code_banque."'"; $sql .= ",'".$soc->bank_account->code_guichet."'"; - $sql .= ",'".$soc->bank_account->number."')"; + $sql .= ",'".$soc->bank_account->number."'"; + $sql .= ",'".$soc->bank_account->cle_rib."')"; if ( $this->db->query( $sql) ) {