diff --git a/htdocs/actioncomm.class.php3 b/htdocs/actioncomm.class.php3 index 8732287fe36..470b09d6b03 100644 --- a/htdocs/actioncomm.class.php3 +++ b/htdocs/actioncomm.class.php3 @@ -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; + } + } } ?>