Kanban / timesheet update

This commit is contained in:
2026-11-30 06:56:14 +02:00
parent 6332ff0fa9
commit a4dbe8ce09
46 changed files with 8091 additions and 331 deletions
+9
View File
@@ -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 => [