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\System\File\Directory;
use phpOMS\Module\InfoManager; use phpOMS\Module\InfoManager;
/** /**
* Navigation class. * Navigation class.
* *

View File

@ -13,6 +13,7 @@
declare(strict_types = 1); declare(strict_types = 1);
namespace Modules\Marketing\Models; namespace Modules\Marketing\Models;
use Modules\Calendar\Models\Calendar; use Modules\Calendar\Models\Calendar;
use Modules\Tasks\Models\Task; use Modules\Tasks\Models\Task;
use phpOMS\Localization\Money; use phpOMS\Localization\Money;
@ -68,14 +69,14 @@ class Promotion
public function __construct(string $name = '') public function __construct(string $name = '')
{ {
$this->start = new \DateTime('now'); $this->start = new \DateTime('now');
$this->end = new \DateTime('now'); $this->end = new \DateTime('now');
$this->end->modify('+1 month'); $this->end->modify('+1 month');
$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->budget = new Money();
$this->earnings = new Money(); $this->earnings = new Money();
$this->setName($name); $this->setName($name);

View File

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