Browse Source

Fix jobs done

pull/3/head
Wahyu Ramadhan 1 year ago
parent
commit
e5ce9156b4
  1. 2
      app/Models/Activity.php

2
app/Models/Activity.php

@ -188,6 +188,8 @@ class Activity extends Model
return 0;
if(!$dataPlan = AssignMaterial::where('activity_id', $this->id)->get())
return 0;
if($dataPlan->isEmpty())
return 0;
if($dataPlan[0]->status_activity == 'done')
return 100;
return $this->persentase_progress;

Loading…
Cancel
Save