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
+5 -1
View File
@@ -2,7 +2,8 @@
return [
'title' => 'Company details',
'intro' => 'The company details are printed on receipts, and the menu name is shown at the left edge of the main menu. The VAT number is formed from the business ID.',
'intro' => 'The company details are printed on receipts, and the menu name is shown at the left edge of the main menu. The VAT number is formed from the business ID. The daily capacity limits the bookings in the task calendar.',
'calendar_heading' => 'Task calendar',
'fields' => [
'name' => 'Company name',
'menu_name' => 'Menu name',
@@ -13,6 +14,8 @@ return [
'address_hint' => 'Street address, postcode and town on separate lines.',
'phone' => 'Phone',
'email' => 'Email',
'daily_capacity_hours' => 'Daily capacity (h)',
'daily_capacity_hours_hint' => 'The task calendar books at most this many hours per person per working day, e.g. 7,5. If left empty, the limit is 7,5 h.',
],
'save' => 'Save',
'saved' => 'Company details saved.',
@@ -23,5 +26,6 @@ return [
'address' => 'The address may be at most 500 characters.',
'phone' => 'The phone number may be at most 50 characters.',
'email' => 'Enter a valid email address.',
'daily_capacity_hours' => 'Enter more than 0 and at most 24 hours, e.g. 7,5.',
],
];