This commit is contained in:
Kekskurse 2021-01-21 15:37:16 +01:00
parent e1745c40be
commit 220d70b54d

View file

@ -15,7 +15,7 @@ class ReportController extends BaseController
public function showReportList() public function showReportList()
{ {
$oldesDate = DB::select("SELECT `year`, `month` FROM `go-mysql-admin`.storage WHERE tenant = " . (int)session("current_tenant_id") . " ORDER BY `date` ASC LIMIT 1;")[0]; $oldesDate = DB::select("SELECT `year`, `month` FROM storage WHERE tenant = " . (int)session("current_tenant_id") . " ORDER BY `date` ASC LIMIT 1;")[0];
$avalibleReports = []; $avalibleReports = [];
for ($i = $oldesDate->year; $i <= date("Y"); $i++) { for ($i = $oldesDate->year; $i <= date("Y"); $i++) {
for ($m = 1; $m <= 12; $m++) { for ($m = 1; $m <= 12; $m++) {