Browse Source

Display planning curve without report

pull/3/head
Wahyu Ramadhan 2 years ago
parent
commit
c4baacd13c
  1. 11
      app/Helpers/MasterFunctionsHelper.php

11
app/Helpers/MasterFunctionsHelper.php

@ -88,7 +88,10 @@ class MasterFunctionsHelper {
$dataFinal=[]; $dataFinal=[];
$dataPayload = []; $dataPayload = [];
$dataPayload['period'] = 'week'; $dataPayload['period'] = 'week';
$totalACWP = 0;
$totalBCWP = 0;
$tempPercentage = [];
$dataProject = Project::find($keyGantt['proyek_id']); $dataProject = Project::find($keyGantt['proyek_id']);
$dataHeader = Activity::where('type_activity', 'header')->where("proyek_id", $keyGantt['proyek_id'])->where("version_gantt_id", $keyGantt['id'])->first(); $dataHeader = Activity::where('type_activity', 'header')->where("proyek_id", $keyGantt['proyek_id'])->where("version_gantt_id", $keyGantt['id'])->first();
@ -110,9 +113,9 @@ class MasterFunctionsHelper {
->join('m_activity as b', 'b.id', '=', 'a.activity_id') ->join('m_activity as b', 'b.id', '=', 'a.activity_id')
->where('b.version_gantt_id', '=', $keyGantt['id']) ->where('b.version_gantt_id', '=', $keyGantt['id'])
->exists(); ->exists();
// note : delete this
if(!$alreadyHasReport) // if(!$alreadyHasReport)
return $dataFinal; // return $dataFinal;
$minDate = Activity::where('version_gantt_id', $keyGantt['id'])->whereNull('parent_id')->pluck('start_date')->first(); $minDate = Activity::where('version_gantt_id', $keyGantt['id'])->whereNull('parent_id')->pluck('start_date')->first();

Loading…
Cancel
Save