bug fixes

This commit is contained in:
Dennis Eichhorn 2019-10-06 21:01:18 +02:00
parent dfb15ac655
commit 72f75d1185
2 changed files with 19 additions and 8 deletions

View File

@ -36,8 +36,13 @@
"type": "INT", "type": "INT",
"null": false "null": false
}, },
"projectmanagement_project_budget": { "projectmanagement_project_budgetcosts": {
"name": "projectmanagement_project_budget", "name": "projectmanagement_project_budgetcosts",
"type": "INT",
"null": false
},
"projectmanagement_project_budgetearnings": {
"name": "projectmanagement_project_budgetearnings",
"type": "INT", "type": "INT",
"null": false "null": false
}, },
@ -56,6 +61,11 @@
"type": "DATETIME", "type": "DATETIME",
"null": false "null": false
}, },
"projectmanagement_project_endestimated": {
"name": "projectmanagement_project_endestimated",
"type": "DATETIME",
"null": false
},
"projectmanagement_project_progress": { "projectmanagement_project_progress": {
"name": "projectmanagement_project_progress", "name": "projectmanagement_project_progress",
"type": "INT", "type": "INT",

View File

@ -87,10 +87,10 @@ class Project
/** /**
* Calendar. * Calendar.
* *
* @var Calendar * @var int|Calendar
* @since 1.0.0 * @since 1.0.0
*/ */
private Calendar $calendar; private $calendar;
/** /**
* Current total costs. * Current total costs.
@ -185,14 +185,15 @@ class Project
$this->end = new \DateTime('now'); $this->end = new \DateTime('now');
$this->end->modify('+1 month'); $this->end->modify('+1 month');
$this->estimatedEnd = clone $this->end; $this->endEstimated = clone $this->end;
$this->createdAt = new \DateTime('now'); $this->createdAt = new \DateTime('now');
$this->calendar = new Calendar(); $this->calendar = new Calendar();
$this->costs = new Money(); $this->costs = new Money();
$this->budget = new Money(); $this->budgetCosts = new Money();
$this->earnings = new Money(); $this->budgetEarnings = new Money();
$this->earnings = new Money();
$this->setName($name); $this->setName($name);
} }