added user-specific rates (#1455)

This commit is contained in:
Kevin Papst
2020-02-10 20:29:43 +01:00
committed by GitHub
parent 465d7166d4
commit 52c7437076
83 changed files with 2054 additions and 520 deletions

View File

@@ -74,7 +74,6 @@ class Activity implements EntityWithMetaFields
private $visible = true;
// keep the trait include exactly here, for placing the column at the correct position
use RatesTrait;
use ColorTrait;
use BudgetTrait;
@@ -138,6 +137,11 @@ class Activity implements EntityWithMetaFields
return $this;
}
public function isGlobal(): bool
{
return $this->project === null;
}
public function isVisible(): bool
{
return $this->visible;