Modif gestion du solde lors de la creation du compte

This commit is contained in:
Rodolphe Quiedeville 2003-09-08 12:14:38 +00:00
parent 7c90b6c50e
commit a9df92a4a4

View File

@ -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);
}