Kanban / timesheet update
This commit is contained in:
@@ -26,9 +26,18 @@ class TimeEntryFactory extends Factory
|
||||
'work_type_id' => fn (array $attributes) => TaskModel::query()->findOrFail($attributes['task_id'])->work_type_id,
|
||||
'worked_on' => now()->toDateString(),
|
||||
'hours' => 2,
|
||||
'note' => fake()->sentence(3),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* An entry without a billing note, which keeps its week from being approved.
|
||||
*/
|
||||
public function withoutNote(): static
|
||||
{
|
||||
return $this->state(['note' => null]);
|
||||
}
|
||||
|
||||
public function approved(?User $by = null): static
|
||||
{
|
||||
return $this->state(fn (array $attributes): array => [
|
||||
|
||||
Reference in New Issue
Block a user