New: Project module support status of project and end date
This commit is contained in:
parent
ed56542bff
commit
b99d2764d4
@ -124,7 +124,7 @@ class Project extends CommonObject
|
||||
$sql.= ", fk_soc = ".($this->socid > 0?$this->socid:"null");
|
||||
$sql.= ", fk_user_resp = ".$this->user_resp_id;
|
||||
$sql.= ", fk_statut = ".$this->statut;
|
||||
$sql.= ", datec=".($this->datec!=''?$this->db->idate($this->datec):'null');
|
||||
$sql.= ", datec=".($this->date_c!=''?$this->db->idate($this->date_c):'null');
|
||||
$sql.= ", dateo=".($this->date_start!=''?$this->db->idate($this->date_start):'null');
|
||||
$sql.= ", datee=".($this->date_end!=''?$this->db->idate($this->date_end):'null');
|
||||
$sql.= " WHERE rowid = ".$this->id;
|
||||
@ -179,7 +179,9 @@ class Project extends CommonObject
|
||||
$this->title = $obj->title;
|
||||
$this->titre = $obj->title;
|
||||
$this->date_c = $this->db->jdate($obj->datec);
|
||||
$this->datec = $this->db->jdate($obj->datec); // deprecated
|
||||
$this->date_m = $this->db->jdate($obj->tms);
|
||||
$this->datem = $this->db->jdate($obj->tms); // deprecated
|
||||
$this->date_start = $this->db->jdate($obj->dateo);
|
||||
$this->date_end = $this->db->jdate($obj->datee);
|
||||
$this->note = $obj->note;
|
||||
|
||||
@ -83,8 +83,9 @@ if ($_POST["action"] == 'add' && $user->rights->projet->creer)
|
||||
$project->title = $_POST["title"];
|
||||
$project->socid = $_POST["socid"];
|
||||
$project->user_resp_id = $_POST["officer_project"];
|
||||
$project->dateo=dol_mktime(12,0,0,$_POST['projectmonth'],$_POST['projectday'],$_POST['projectyear']);
|
||||
$project->datec=dol_now('tzserver');
|
||||
$project->dateo=dol_mktime(12,0,0,$_POST['projectmonth'],$_POST['projectday'],$_POST['projectyear']);
|
||||
$project->datee=dol_mktime(12,0,0,$_POST['projectendmonth'],$_POST['projectendday'],$_POST['projectendyear']);
|
||||
|
||||
$result = $project->create($user);
|
||||
if ($result > 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user