update fix deadcode, security

This commit is contained in:
baodev0
2026-09-28 08:26:29 +07:00
parent 3af59bd9c5
commit 82080b5b84
452 changed files with 4857 additions and 26289 deletions
@@ -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;