diff --git a/Models/AccountRelation.php b/Models/AccountRelation.php index ef6ed78..5492d4b 100755 --- a/Models/AccountRelation.php +++ b/Models/AccountRelation.php @@ -33,7 +33,7 @@ class AccountRelation * @var int * @since 1.0.0 */ - protected int $id = 0; + public int $id = 0; /** * Promotion diff --git a/Models/Promotion.php b/Models/Promotion.php index 2075eab..8b99661 100755 --- a/Models/Promotion.php +++ b/Models/Promotion.php @@ -20,7 +20,7 @@ use Modules\Calendar\Models\Calendar; use Modules\Media\Models\Media; use Modules\Tasks\Models\NullTask; use Modules\Tasks\Models\Task; -use phpOMS\Localization\Money; +use phpOMS\Stdlib\Base\FloatInt; /** * Promotion class. @@ -38,7 +38,7 @@ class Promotion * @var int * @since 1.0.0 */ - protected int $id = 0; + public int $id = 0; /** * Event start. @@ -83,34 +83,34 @@ class Promotion /** * Budget costs. * - * @var Money + * @var FloatInt * @since 1.0.0 */ - public Money $budgetCosts; + public FloatInt $budgetCosts; /** * Budget earnings. * - * @var Money + * @var FloatInt * @since 1.0.0 */ - public Money $budgetEarnings; + public FloatInt $budgetEarnings; /** * Current total costs. * - * @var Money + * @var FloatInt * @since 1.0.0 */ - public Money $actualCosts; + public FloatInt $actualCosts; /** * Current total earnings. * - * @var Money + * @var FloatInt * @since 1.0.0 */ - public Money $actualEarnings; + public FloatInt $actualEarnings; /** * Tasks. @@ -188,10 +188,10 @@ class Promotion $this->start = new \DateTime('now'); $this->end = (new \DateTime('now'))->modify('+1 month'); $this->calendar = new Calendar(); - $this->actualCosts = new Money(); - $this->actualEarnings = new Money(); - $this->budgetCosts = new Money(); - $this->budgetEarnings = new Money(); + $this->actualCosts = new FloatInt(); + $this->actualEarnings = new FloatInt(); + $this->budgetCosts = new FloatInt(); + $this->budgetEarnings = new FloatInt(); $this->createdAt = new \DateTimeImmutable('now'); $this->createdBy = new NullAccount(); diff --git a/Models/PromotionAttribute.php b/Models/PromotionAttribute.php index 067dbfc..403b08f 100755 --- a/Models/PromotionAttribute.php +++ b/Models/PromotionAttribute.php @@ -30,7 +30,7 @@ class PromotionAttribute implements \JsonSerializable * @var int * @since 1.0.0 */ - protected int $id = 0; + public int $id = 0; /** * Promotion this attribute belongs to diff --git a/Models/PromotionAttributeType.php b/Models/PromotionAttributeType.php index 53b2e66..5605927 100755 --- a/Models/PromotionAttributeType.php +++ b/Models/PromotionAttributeType.php @@ -33,7 +33,7 @@ class PromotionAttributeType implements \JsonSerializable * @var int * @since 1.0.0 */ - protected int $id = 0; + public int $id = 0; /** * Name/string identifier by which it can be found/categorized diff --git a/Models/PromotionAttributeValue.php b/Models/PromotionAttributeValue.php index c66abc3..a569522 100755 --- a/Models/PromotionAttributeValue.php +++ b/Models/PromotionAttributeValue.php @@ -36,7 +36,7 @@ class PromotionAttributeValue implements \JsonSerializable * @var int * @since 1.0.0 */ - protected int $id = 0; + public int $id = 0; /** * Depending attribute type diff --git a/Theme/Backend/promotion-list.tpl.php b/Theme/Backend/promotion-list.tpl.php index d9f7e0d..07f38bd 100755 --- a/Theme/Backend/promotion-list.tpl.php +++ b/Theme/Backend/promotion-list.tpl.php @@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?>