diff --git a/app/Http/Controllers/ProjectController.php b/app/Http/Controllers/ProjectController.php index 5b5f30f..104b128 100644 --- a/app/Http/Controllers/ProjectController.php +++ b/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') diff --git a/app/Models/Project.php b/app/Models/Project.php index cf2d0ad..2226419 100644 --- a/app/Models/Project.php +++ b/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',