diff --git a/Models/Project.php b/Models/Project.php index 24e6a99..9416f17 100755 --- a/Models/Project.php +++ b/Models/Project.php @@ -19,7 +19,7 @@ use Modules\Admin\Models\NullAccount; use Modules\Calendar\Models\Calendar; use Modules\Media\Models\Media; use Modules\Tasks\Models\Task; -use phpOMS\Localization\Money; +use phpOMS\Stdlib\Base\FloatInt; /** * Project class. @@ -37,7 +37,7 @@ class Project * @var int * @since 1.0.0 */ - protected int $id = 0; + public int $id = 0; /** * Start date. @@ -98,34 +98,34 @@ class Project /** * 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; /** * Progress percentage. @@ -202,10 +202,10 @@ class Project $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->setName($name); } diff --git a/Models/ProjectAttribute.php b/Models/ProjectAttribute.php index 47afd18..85af70e 100755 --- a/Models/ProjectAttribute.php +++ b/Models/ProjectAttribute.php @@ -30,7 +30,7 @@ class ProjectAttribute implements \JsonSerializable * @var int * @since 1.0.0 */ - protected int $id = 0; + public int $id = 0; /** * Project this attribute belongs to diff --git a/Models/ProjectAttributeType.php b/Models/ProjectAttributeType.php index e02494e..5e7c897 100755 --- a/Models/ProjectAttributeType.php +++ b/Models/ProjectAttributeType.php @@ -33,7 +33,7 @@ class ProjectAttributeType 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/ProjectAttributeValue.php b/Models/ProjectAttributeValue.php index 1b3c441..601022e 100755 --- a/Models/ProjectAttributeValue.php +++ b/Models/ProjectAttributeValue.php @@ -36,7 +36,7 @@ class ProjectAttributeValue implements \JsonSerializable * @var int * @since 1.0.0 */ - protected int $id = 0; + public int $id = 0; /** * Depending attribute type diff --git a/Theme/Backend/projectmanagement-list.tpl.php b/Theme/Backend/projectmanagement-list.tpl.php index 4e2bb50..ec15267 100755 --- a/Theme/Backend/projectmanagement-list.tpl.php +++ b/Theme/Backend/projectmanagement-list.tpl.php @@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?>