dashboard update

This commit is contained in:
Frank Schubert
2024-01-23 22:51:48 +01:00
parent b342edb99e
commit d2dd48ba52
2 changed files with 3 additions and 7 deletions

View File

@@ -187,10 +187,10 @@ class DashboardController extends mfBaseController {
$orders[$name] = [];
$orders[$name]["total"] = 0;
}
if(!array_key_exists($preorder->status->id, $orders[$name])) {
$orders[$name][$preorder->status->id] = 0;
if(!array_key_exists($preorder->status_id, $orders[$name])) {
$orders[$name][$preorder->status_id] = 0;
}
$orders[$name][$preorder->status->id]++;
$orders[$name][$preorder->status_id]++;
$orders[$name]["total"]++;
}
//var_dump($orders);exit;