Add Reports module with the hours by person report

Management's reports (spec 13) get their own module that reads the other
modules through ports. The first report sums hours by person in a period,
narrowed by service unit or customer, with breakdowns, a chart and CSV.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-25 08:39:19 +02:00
co-authored by Claude Sonnet 5.5
parent f906f9a43f
commit 64f1e7c54a
45 changed files with 1828 additions and 3 deletions
+63
View File
@@ -0,0 +1,63 @@
<?php
return [
'total' => 'Total',
'yes' => 'yes',
'no' => 'no',
'download_csv' => 'Download CSV',
'csv_file' => ':report-:from-:to.csv',
'chart_note' => 'The same figures are in the table.',
'chart_empty' => 'There is nothing to show in the chart.',
'period' => [
'legend' => 'Period',
'from' => 'From',
'to' => 'To',
'presets' => 'Quick choices',
'this_month' => 'This month',
'previous_month' => 'Previous month',
'this_year' => 'This year',
'previous_year' => 'Previous year',
'invalid' => 'Check the period: give two dates, the first one not after the second.',
],
'filters' => [
'service_unit' => 'Service unit',
'all_service_units' => 'All service units',
'customer' => 'Customer',
'all_customers' => 'All customers',
],
'hours' => [
'title' => 'Hours by person',
'file' => 'hours',
'none' => 'No hours were recorded in the period.',
'table' => 'Hours by person :period',
'person' => 'Person',
'total' => 'Total hours',
'customer' => 'Customer work',
'internal' => 'Internal work',
'unapproved' => 'Not approved',
'billed' => 'Billed',
'chart' => 'Hours by person',
'breakdown' => 'Breakdown by person',
'person_summary' => ':name, :hours h',
'by_work_type' => 'By work type',
'by_job' => 'By customer job',
'work_type' => 'Work type',
'job' => 'Customer job',
'hours' => 'Hours',
'csv' => [
'person' => 'Person',
'job_number' => 'Job number',
'job' => 'Customer job',
'customer' => 'Customer',
'internal' => 'Internal',
'service_unit' => 'Service unit',
'work_type' => 'Work type',
'hours' => 'Hours',
'unapproved' => 'Not approved',
'billed' => 'Billed',
],
],
];