Fix: Plantage insertion action commerciale

This commit is contained in:
Laurent Destailleur 2006-02-26 15:35:02 +00:00
parent 0ce24b707b
commit e3693349ba

View File

@ -89,7 +89,7 @@ class ActionComm
if ($this->percent == 100) $sql.= "datea,";
$sql.= "fk_action,fk_soc,note,fk_contact,fk_user_author,fk_user_action,label,percent,priority,";
$sql.= "fk_facture,propalrowid)";
$sql.= " VALUES (now,";
$sql.= " VALUES (now(),";
$sql.= "'".$this->db->idate($this->date)."',";
if ($this->percent == 100) $sql.= "'".$this->db->idate($this->date)."',";
$sql.= "'".$this->type_id."', '".$this->societe->id."' ,'".addslashes($this->note)."',";