added team filter in timesheet search forms (#3590)
* added team filter in export and invoice search form * added teams select to timesheet filter * added team select to report filter * hide user and team filter if count < 2
This commit is contained in:
@@ -9,11 +9,17 @@
|
||||
|
||||
namespace App\Reporting;
|
||||
|
||||
use App\Entity\Team;
|
||||
|
||||
abstract class AbstractUserList
|
||||
{
|
||||
private $date;
|
||||
private $decimal = false;
|
||||
private $sumType = 'duration';
|
||||
/**
|
||||
* @var Team|null
|
||||
*/
|
||||
private $team = null;
|
||||
|
||||
public function getDate(): ?\DateTime
|
||||
{
|
||||
@@ -48,4 +54,14 @@ abstract class AbstractUserList
|
||||
|
||||
$this->sumType = $sumType;
|
||||
}
|
||||
|
||||
public function getTeam(): ?Team
|
||||
{
|
||||
return $this->team;
|
||||
}
|
||||
|
||||
public function setTeam(?Team $team = null): void
|
||||
{
|
||||
$this->team = $team;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user