mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-01-29 09:58:40 +00:00
phpcbf
This commit is contained in:
parent
53a272973b
commit
ef683c420c
|
|
@ -19,7 +19,6 @@ use phpOMS\Module\UpdateAbstract;
|
|||
use phpOMS\System\File\Directory;
|
||||
use phpOMS\Module\InfoManager;
|
||||
|
||||
|
||||
/**
|
||||
* Navigation class.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,5 +110,4 @@ class PromotionMapper extends DataMapperAbstract
|
|||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'marketing_promotion_id';
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user