From a9df92a4a462a98c5ee4c8977095a5e744ce7d21 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 8 Sep 2003 12:14:38 +0000 Subject: [PATCH] Modif gestion du solde lors de la creation du compte --- htdocs/compta/bank/account.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/bank/account.class.php b/htdocs/compta/bank/account.class.php index 009ed922a78..be9f28cd3bc 100644 --- a/htdocs/compta/bank/account.class.php +++ b/htdocs/compta/bank/account.class.php @@ -132,8 +132,8 @@ class Account $this->id = $this->db->last_insert_id(); if ( $this->update() ) { - $sql = "INSERT INTO llx_bank (datec, label, amount, fk_account,datev,dateo) "; - $sql .= " VALUES (now(),'Solde',$this->solde,$this->id,'1970-01-01','1970-01-01');"; + $sql = "INSERT INTO llx_bank (datec, label, amount, fk_account,datev,dateo,fk_type,rappro) "; + $sql .= " VALUES (now(),'Solde',$this->solde,$this->id,'".$this->db->idate($this->date_solde)."','".$this->db->idate($this->date_solde)."','SOLD',1);"; $this->db->query($sql); }