update fix deadcode, security
This commit is contained in:
@@ -102,15 +102,6 @@ class InvoiceRepository extends BaseRepository implements InvoiceRepositoryInter
|
||||
}
|
||||
return $model->get();
|
||||
}
|
||||
public function get_billing_year(int $year = 0){
|
||||
return $this->model->whereYear('created_at',$year)->get()->sum('total');
|
||||
}
|
||||
public function get_billing_month(int $month = 0){
|
||||
return $this->model->whereMonth('created_at',$month)->get()->sum('total');
|
||||
}
|
||||
public function get_billing_day(int|string $day = ''){
|
||||
return $this->model->whereDate('created_at',$day)->get()->sum('total');
|
||||
}
|
||||
public function findWithRelationships(string $ordernum = '', array $relationships = [], array $withCount = [], array $withSum = [])
|
||||
{
|
||||
$model = $this->model;
|
||||
|
||||
Reference in New Issue
Block a user