feat: tambah budget kegiatan dengan alur threshold approval/voting
This commit is contained in:
@@ -9,7 +9,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
class Activity extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'title', 'description', 'start_date', 'end_date',
|
||||
'title', 'description', 'budget', 'start_date', 'end_date',
|
||||
'created_by', 'status', 'approved_by', 'approved_at',
|
||||
'executed_at', 'execution_notes',
|
||||
];
|
||||
@@ -44,4 +44,9 @@ class Activity extends Model
|
||||
return $this->belongsToMany(User::class, 'activity_member')
|
||||
->withPivot('status', 'notes');
|
||||
}
|
||||
|
||||
public function cashRecords(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
{
|
||||
return $this->hasMany(CashRecord::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user