2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Rodolphe Quiedeville
2005-04-02 09:55:01 +00:00
parent 977d856ffe
commit 755f39ed68

View File

@@ -182,14 +182,16 @@ class Don
$this->date = $this->db->idate($this->date);
$sql = "INSERT INTO ".MAIN_DB_PREFIX."don (datec, amount, fk_paiement,prenom, nom, societe,adresse, cp, ville, pays, public,";
if ($this->projetid) {
$sql .= " fk_don_projet,";
}
if ($this->projetid)
{
$sql .= " fk_don_projet,";
}
$sql .= " note, fk_user_author, datedon, email)";
$sql .= " VALUES (now(), $this->amount, $this->modepaiementid,'$this->prenom','$this->nom','$this->societe','$this->adresse', '$this->cp','$this->ville','$this->pays',$this->public, ";
if ($this->projetid) {
$sql .= " $this->projetid,";
}
$sql .= " VALUES (now(),".ereg_replace(",",".", $this->amount).", $this->modepaiementid,'$this->prenom','$this->nom','$this->societe','$this->adresse', '$this->cp','$this->ville','$this->pays',$this->public, ";
if ($this->projetid)
{
$sql .= " $this->projetid,";
}
$sql .= " '$this->commentaire', $userid, '$this->date','$this->email')";
$result = $this->db->query($sql);