Gestion des actions faire

This commit is contained in:
Rodolphe Quiedeville
2003-08-03 16:53:46 +00:00
parent 7cce446aa3
commit d62d566bb1

View File

@@ -129,5 +129,23 @@ class ActionComm
*
*
*/
Function update()
{
$sql = "UPDATE llx_actioncomm ";
$sql .= " SET percent=$this->percent";
if ($this->percent == 100)
{
$sql .= ", datea = now()";
}
$sql .= " WHERE id=$this->id;";
if ($this->db->query($sql) )
{
return 1;
}
}
}
?>