Set the calendar's daily capacity in the company details

The task calendar's daily maximum moves from the hidden setting
jobs.daily_capacity_hours to shared.daily_capacity_hours, edited by the
admin on the company details page. An empty field means 7.5 hours.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-25 11:00:35 +02:00
co-authored by Claude Sonnet 5.5
parent e0da863cf7
commit 7c605014c7
16 changed files with 245 additions and 23 deletions
@@ -68,7 +68,7 @@ it('continues a task on the next working day when the day is full', function ()
Livewire::test('jobs::calendar')
->call('reschedule', $task->id, $this->job->id, $this->employee->id, $this->employee->id, '2026-12-23', '2026-12-23')
->assertSee('Päivät olivat täynnä, joten tehtävä jatkuu 28.12.2026 asti.')
->assertSee('8 / 8 h');
->assertSee('7,5 / 7,5 h');
expect($task->refresh()->planned_to?->format('Y-m-d'))->toBe('2026-12-28');
});