search and export from invoice archive (#2408)

This commit is contained in:
Kevin Papst
2021-03-10 01:50:27 +01:00
committed by GitHub
parent c34e9f576d
commit db1344573f
22 changed files with 544 additions and 72 deletions

View File

@@ -20,6 +20,7 @@ use App\Form\Model\DateRange;
class TimesheetQuery extends ActivityQuery implements BillableInterface
{
use BillableTrait;
use DateRangeTrait;
public const STATE_ALL = 1;
public const STATE_RUNNING = 2;
@@ -49,10 +50,6 @@ class TimesheetQuery extends ActivityQuery implements BillableInterface
* @var \DateTime|null
*/
private $modifiedAfter;
/**
* @var DateRange
*/
protected $dateRange;
/**
* @var iterable
*/
@@ -230,42 +227,6 @@ class TimesheetQuery extends ActivityQuery implements BillableInterface
return $this;
}
public function getBegin(): ?\DateTime
{
return $this->dateRange->getBegin();
}
public function setBegin(\DateTime $begin): TimesheetQuery
{
$this->dateRange->setBegin($begin);
return $this;
}
public function getEnd(): ?\DateTime
{
return $this->dateRange->getEnd();
}
public function setEnd(\DateTime $end): TimesheetQuery
{
$this->dateRange->setEnd($end);
return $this;
}
public function getDateRange(): DateRange
{
return $this->dateRange;
}
public function setDateRange(DateRange $dateRange): TimesheetQuery
{
$this->dateRange = $dateRange;
return $this;
}
public function getTags(bool $allowUnknown = false): iterable
{
if (empty($this->tags)) {