mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
Gestion des actions faire
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user