Browse Source

project charter

pull/1/head
wahyuun 1 year ago
parent
commit
a0f487fd32
  1. 5
      app/Http/Controllers/ProjectController.php
  2. 1
      app/Models/Project.php

5
app/Http/Controllers/ProjectController.php

@ -53,7 +53,8 @@ class ProjectController extends Controller
'mulai_proyek' => 'required',
'akhir_proyek' => 'required',
'rencana_biaya' => 'required',
'type_proyek_id' => 'required'
'type_proyek_id' => 'required',
'value_proyek' => 'required'
]);
$data = $request->all();
@ -543,7 +544,7 @@ class ProjectController extends Controller
$maxEndDate = Activity::where('proyek_id', $id)->select('end_date')
->orderBy('end_date', 'desc')
->first();
}else{
// $actualEndExist = Activity::where('version_gantt_id', $ganttId)->exists();
$maxEndDate = Activity::where('version_gantt_id', $ganttId)->select('end_date')

1
app/Models/Project.php

@ -25,6 +25,7 @@ class Project extends Model
'pm_id',
'type_proyek_id',
'divisi_id',
'value_proyek',
'persentase_progress',
'keterangan',
'durasi_proyek',

Loading…
Cancel
Save