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]>
64 lines
2.0 KiB
PHP
64 lines
2.0 KiB
PHP
<?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',
|
|
],
|
|
],
|
|
];
|