renamed function

This commit is contained in:
denisdulici
2020-01-29 01:06:12 +03:00
parent 05aba16b3d
commit 0d33ffd311
7 changed files with 23 additions and 19 deletions

View File

@ -38,7 +38,7 @@ class Reports extends Controller
$ttl = 3600 * 6; // 6 hours
$totals[$report->id] = Cache::remember('reports.totals.' . $report->id, $ttl, function () use ($class) {
return $class->getTotal();
return $class->getGrandTotal();
});
$icons[$report->id] = $class->getIcon();
@ -63,7 +63,7 @@ class Reports extends Controller
$class = Utility::getClassInstance($report);
// Update cache
Cache::put('reports.totals.' . $report->id, $class->getTotal());
Cache::put('reports.totals.' . $report->id, $class->getGrandTotal());
return $class->show();
}
@ -267,7 +267,7 @@ class Reports extends Controller
return;
}
Cache::put('reports.totals.' . $report->id, Utility::getClassInstance($report)->getTotal());
Cache::put('reports.totals.' . $report->id, Utility::getClassInstance($report)->getGrandTotal());
});
return redirect()->back();