window.location.replace("/compte-' . core::getGet("add") . '.html");'; exit(); } ?> Banque : Insérer une ligne dans l'épargne financière "Importer un CSV", "arbo" => array( "Comptes bancaires" => NULL, $banque["label"] => "/compte-". core::getGet("add") .".html", "Insérer une ligne" => NULL) )); $lastLigne = banque::lastArrayRecord(core::getGet("add")); if($lastLigne == FALSE){ unset($lastLigne); $lastLigne["debit"] = "0.00"; $lastLigne["credit"] = "0.00"; $lastLigne["date"] = $banque["solde_date"]; $lastLigne["solde"] = $banque["solde"]; $lastLigne["label"] = "Solde d'ouverture"; } if($lastLigne["debit"] == "0.00" AND $lastLigne["credit"] == "0.00"){ $montant = "0.00"; $type = "Initial"; } elseif($lastLigne["debit"] == "0.00"){ $montant = $lastLigne["credit"]; $type = "Crédit"; } else { $montant = $lastLigne["debit"]; $type = "Débit"; } ?>