search and export from invoice archive (#2408)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user