|
@@ -11,7 +11,7 @@ class DischargeTaskFilters
|
|
|
protected $request;
|
|
protected $request;
|
|
|
protected $queryBuilder;
|
|
protected $queryBuilder;
|
|
|
protected $filters = [
|
|
protected $filters = [
|
|
|
- 'owners', 'created_at_start', 'created_at_end', 'numbers', 'status', 'type', 'income_remark','facilitators','created_range','owners'
|
|
|
|
|
|
|
+ 'owners', 'income_at_start', 'income_at_end', 'numbers', 'status', 'type', 'income_remark','facilitators','created_range','owners'
|
|
|
];
|
|
];
|
|
|
protected $array_filter;
|
|
protected $array_filter;
|
|
|
protected $params = [];
|
|
protected $params = [];
|
|
@@ -65,13 +65,13 @@ class DischargeTaskFilters
|
|
|
$this->queryBuilder->where('discharge_tasks.owner_id',$owner_id);
|
|
$this->queryBuilder->where('discharge_tasks.owner_id',$owner_id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function created_at_start($created_at_start)
|
|
|
|
|
|
|
+ public function income_at_start($income_at_start)
|
|
|
{
|
|
{
|
|
|
- $this->queryBuilder->where('discharge_tasks.created_at','>=',$created_at_start);
|
|
|
|
|
|
|
+ $this->queryBuilder->where('discharge_tasks.income_at','>=',$income_at_start.' 00:00:00');
|
|
|
}
|
|
}
|
|
|
- public function created_at_end($created_at_end)
|
|
|
|
|
|
|
+ public function income_at_end($income_at_end)
|
|
|
{
|
|
{
|
|
|
- $this->queryBuilder->where('discharge_tasks.created_at','<=',$created_at_end);
|
|
|
|
|
|
|
+ $this->queryBuilder->where('discharge_tasks.income_at','<=',$income_at_end.' 23:59:59');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function numbers($numbers)
|
|
public function numbers($numbers)
|