This commit is contained in:
Dennis Eichhorn 2018-02-03 13:09:09 +01:00
parent 53a272973b
commit ef683c420c
3 changed files with 5 additions and 6 deletions

View File

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

View File

@ -13,6 +13,7 @@
declare(strict_types = 1);
namespace Modules\Marketing\Models;
use Modules\Calendar\Models\Calendar;
use Modules\Tasks\Models\Task;
use phpOMS\Localization\Money;
@ -68,14 +69,14 @@ class Promotion
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);
@ -236,4 +237,4 @@ class Promotion
{
$this->createdBy = $createdBy;
}
}
}

View File

@ -110,5 +110,4 @@ class PromotionMapper extends DataMapperAbstract
* @since 1.0.0
*/
protected static $primaryField = 'marketing_promotion_id';
}