This commit is contained in:
Dennis Eichhorn 2018-02-03 13:09:09 +01:00
parent 4d57671a45
commit 4f6152f93e
4 changed files with 9 additions and 10 deletions

View File

@ -19,7 +19,6 @@ use phpOMS\Module\UpdateAbstract;
use phpOMS\System\File\Directory;
use phpOMS\Module\InfoManager;
/**
* Navigation class.
*

View File

@ -26,9 +26,9 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class ProgressType extends Enum
{
/* public */ const MANUAL = 0;
/* public */ const LINEAR = 1;
/* public */ const MANUAL = 0;
/* public */ const LINEAR = 1;
/* public */ const EXPONENTIAL = 2;
/* public */ const LOG = 3;
/* public */ const TASKS = 4;
/* public */ const LOG = 3;
/* public */ const TASKS = 4;
}

View File

@ -13,6 +13,7 @@
declare(strict_types = 1);
namespace Modules\ProjectManagement\Models;
use Modules\Calendar\Models\Calendar;
use Modules\Tasks\Models\Task;
use phpOMS\Localization\Money;
@ -72,14 +73,14 @@ class Project
public function __construct(string $name = '')
{
$this->start = new \DateTime('now');
$this->end = new \DateTime('now');
$this->end = new \DateTime('now');
$this->end->modify('+1 month');
$this->createdAt = new \DateTime('now');
$this->calendar = new Calendar();
$this->costs = new Money();
$this->budget = new Money();
$this->costs = new Money();
$this->budget = new Money();
$this->earnings = new Money();
$this->setName($name);
@ -260,4 +261,4 @@ class Project
{
$this->createdBy = $createdBy;
}
}
}

View File

@ -112,5 +112,4 @@ class ProjectMapper extends DataMapperAbstract
* @since 1.0.0
*/
protected static $primaryField = 'projectmanagement_project_id';
}