Added new Dashboard Features
This commit is contained in:
@@ -270,6 +270,14 @@ class DashboardNewController extends mfBaseController {
|
||||
$timeline_ont_installiert_300[0][$key]['value'] += $ont_installiert_300_base_value_before_history;
|
||||
}
|
||||
|
||||
$provider_bestellt_500 = $countFunction([">status_code" => "499", "<status_code" => "899"]);
|
||||
$timeline_provider_bestellt_500 = $this->getTimeline('weekly-provider-bestellt', $campaign_ids, $gemeinde_ids);
|
||||
$provider_bestellt_500_base_value_before_history = $provider_bestellt_500 - $timeline_provider_bestellt_500[0][count($timeline_provider_bestellt_500[0]) - 1]['value'];
|
||||
|
||||
foreach ($timeline_provider_bestellt_500[0] as $key => $value) {
|
||||
$timeline_provider_bestellt_500[0][$key]['value'] += $provider_bestellt_500_base_value_before_history;
|
||||
}
|
||||
|
||||
self::returnJson([
|
||||
'type' => 'default',
|
||||
'order_max_home_addrdb' => $order_max_homes,
|
||||
@@ -289,10 +297,11 @@ class DashboardNewController extends mfBaseController {
|
||||
'ont_installiert_300' => $ont_installiert_300,
|
||||
'vollanschluss_dokumentiert_350' => $countFunction(["status_code" => ["350","500"], "type" => "order"]),
|
||||
'vorsorge_dokumentiert_351' => $countFunction(["status_code" => ["351","500"], "type" => "provision"]),
|
||||
'provider_bestellt_500' => $countFunction(["status_code" => "500"]),
|
||||
'provider_bestellt_500' => $provider_bestellt_500,
|
||||
'timeline' => $this->getTimeline('weekly-orders', $campaign_ids, $gemeinde_ids),
|
||||
'timeline_leerrohr' => $timeline_baufortschritt_140,
|
||||
'timeline_ont_installed' => $timeline_ont_installiert_300
|
||||
'timeline_ont_installed' => $timeline_ont_installiert_300,
|
||||
'timeline_provider_bestellt' => $timeline_provider_bestellt_500
|
||||
|
||||
|
||||
]);
|
||||
@@ -384,6 +393,10 @@ class DashboardNewController extends mfBaseController {
|
||||
$params['add-where'] = " AND ph.`create` <= UNIX_TIMESTAMP('" . $date . " 23:59:59')";
|
||||
$value = PreorderModel::countHistoryStatus($params, 500);
|
||||
break;
|
||||
case 'weekly-provider-bestellt':
|
||||
$params['add-where'] = " AND ph.`create` <= UNIX_TIMESTAMP('" . $date . " 23:59:59')";
|
||||
$value = PreorderModel::countHistoryStatus($params, 500);
|
||||
break;
|
||||
}
|
||||
|
||||
$newData = [
|
||||
|
||||
Reference in New Issue
Block a user