Browse Source

bugfix date

pull/3/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
cc6516c712
  1. 3
      app/Http/Controllers/DashboardBoDController.php

3
app/Http/Controllers/DashboardBoDController.php

@ -326,7 +326,8 @@ class DashboardBoDController extends Controller
if(!$alreadyHasReport)
continue;
$minDate = Activity::where('version_gantt_id', $keyGantt['last_gantt_id'])->min("planned_start");
/* $minDate = Activity::where('version_gantt_id', $keyGantt['last_gantt_id'])->min("planned_start"); */
$minDate = Activity::where('version_gantt_id', $keyGantt['last_gantt_id'])->whereNull('parent_id')->pluck('start_date')->first();
$begin = new \DateTime($minDate.' Monday');
$maxDate = DB::table('assign_material_to_activity as ama')

Loading…
Cancel
Save