Add the profitability report and the internal hourly cost

Profitability by job and service unit from a period's hours, expenses
and the created billing materials of its months. Hours are costed at one
internal hourly cost, set on the price list maintenance page; a job of
several service units is shared evenly between them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-25 08:50:30 +02:00
co-authored by Claude Sonnet 5.5
parent 8079c272d2
commit 8aa62c8e02
31 changed files with 1110 additions and 1 deletions
+8
View File
@@ -210,6 +210,14 @@ return [
'removed' => 'Mileage rate removed.',
],
'internal_cost' => [
'section' => 'Internal hourly cost',
'label' => 'Hourly cost (€/h, excl. VAT)',
'help' => 'One shared cost of an hour of work (wages and overheads), e.g. 45. The profitability report uses it for the cost of the hours. An empty field removes it.',
'saved' => 'Hourly cost :cost saved.',
'removed' => 'Hourly cost removed.',
],
'fields' => [
'name' => 'Name',
'service_unit' => 'Service unit',
+47
View File
@@ -162,4 +162,51 @@ return [
'amount' => 'Amount VAT 0 (cents)',
],
],
'profitability' => [
'title' => 'Profitability',
'file' => 'profitability',
'intro' => 'From what happened in the period: the hours worked and expenses recorded in it, and what the created billing materials of its billing months billed. The margin is what was billed (work and expenses) less the expenses’ purchase costs and the cost of the hours. Amounts are without VAT (VAT 0).',
'include_internal' => 'Also show internal jobs',
'no_cost' => 'No internal hourly cost is set, so the cost of the hours and the margin are not calculated.',
'set_cost' => 'Set the hourly cost in price list maintenance',
'cost_used' => 'Hours are costed at the internal hourly cost of :cost / h.',
'none' => 'There are no hours, expenses or billing in the period.',
'by_service_unit' => 'By service unit',
'split_note' => 'The figures of a job with several service units are shared evenly between them.',
'units_table' => 'Profitability by service unit :period',
'service_unit' => 'Service unit',
'no_service_unit' => 'No service unit',
'jobs' => 'Jobs',
'hours' => 'Hours',
'revenue' => 'Billed',
'costs' => 'Costs',
'margin' => 'Margin',
'margin_percent' => 'Margin %',
'chart' => 'Margin by service unit',
'by_job' => 'By customer job',
'jobs_table' => 'Profitability by customer job :period',
'job' => 'Customer job',
'billed_hours' => 'Billed hours',
'work_revenue' => 'Billed work',
'expense_revenue' => 'Billed expenses',
'expense_cost' => 'Expense purchase cost',
'hour_cost' => 'Cost of hours',
'effective_rate' => 'Realised €/h',
'quoted' => 'quote :amount',
'csv' => [
'job_number' => 'Job number',
'job' => 'Customer job',
'customer' => 'Customer',
'service_units' => 'Service units',
'payment_basis' => 'Payment basis',
'hours' => 'Hours',
'billed_hours' => 'Billed hours',
'work_revenue' => 'Billed work (cents)',
'expense_revenue' => 'Billed expenses (cents)',
'expense_cost' => 'Expense purchase cost (cents)',
'hour_cost' => 'Cost of hours (cents)',
'margin' => 'Margin (cents)',
],
],
];