Add the unbilled hours report

Hours on customers' billable jobs that no billing material has taken,
by job and work type up to a day, valued at the hourly rates for jobs
billed by the hour, with a chart by service unit and CSV.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-25 08:41:43 +02:00
co-authored by Claude Sonnet 5.5
parent 64f1e7c54a
commit a57b383e4d
17 changed files with 697 additions and 45 deletions
+37 -1
View File
@@ -5,7 +5,6 @@ return [
'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.',
@@ -60,4 +59,41 @@ return [
'billed' => 'Billed',
],
],
'unbilled' => [
'title' => 'Unbilled hours',
'file' => 'unbilled-hours',
'intro' => 'Hours on customers’ billable jobs that no billing material has billed yet, approved and not approved. The value is the hours times the work type’s hourly rate (VAT 0) on jobs billed by the hour; a fixed quote or monthly fee covers the hours of other jobs. Internal and not billable jobs are left out.',
'day' => 'Worked on or before',
'invalid_day' => 'Check the date.',
'until' => 'Worked on or before :day',
'none' => 'There are no unbilled hours.',
'table' => 'Unbilled hours by customer job, worked on or before :day',
'job' => 'Customer job',
'status' => 'Status and payment basis',
'oldest' => 'Oldest entry',
'approved' => 'Approved',
'unapproved' => 'Not approved',
'value' => 'Value (VAT 0)',
'in_price' => 'Included in the price',
'missing_rate' => 'no hourly rate',
'missing_rate_short' => '(partly no hourly rate)',
'by_work_type' => 'By work type: :job',
'work_type_line' => ':name: approved :approved h, not approved :unapproved h',
'chart' => 'Value of unbilled hours by service unit',
'csv' => [
'job_number' => 'Job number',
'job' => 'Customer job',
'customer' => 'Customer',
'status' => 'Status',
'payment_basis' => 'Payment basis',
'service_unit' => 'Service unit',
'work_type' => 'Work type',
'approved' => 'Approved',
'unapproved' => 'Not approved',
'rate' => 'Hourly rate (cents)',
'value' => 'Value (cents)',
'oldest' => 'Oldest entry',
],
],
];
+37 -1
View File
@@ -5,7 +5,6 @@ return [
'yes' => 'kyllä',
'no' => 'ei',
'download_csv' => 'Lataa CSV',
'csv_file' => ':report-:from-:to.csv',
'chart_note' => 'Samat luvut ovat taulukossa.',
'chart_empty' => 'Kaaviossa ei ole näytettävää.',
@@ -60,4 +59,41 @@ return [
'billed' => 'Laskutettu',
],
],
'unbilled' => [
'title' => 'Laskuttamattomat tunnit',
'file' => 'laskuttamattomat-tunnit',
'intro' => 'Asiakkaiden laskutettavien töiden tunnit, joita mikään laskuaineisto ei ole vielä laskuttanut, hyväksytyt ja hyväksymättömät. Arvo on tunnit kertaa työtehtävän tuntihinta (ALV 0) töillä, jotka laskutetaan tunneittain; kiinteän tarjouksen ja kuukausihinnan tunnit sisältyvät hintaan. Sisäiset ja ei laskutettavat työt eivät ole mukana.',
'day' => 'Tehty viimeistään',
'invalid_day' => 'Tarkista päivämäärä.',
'until' => 'Tehty viimeistään :day',
'none' => 'Laskuttamattomia tunteja ei ole.',
'table' => 'Laskuttamattomat tunnit asiakastöittäin, tehty viimeistään :day',
'job' => 'Asiakastyö',
'status' => 'Tila ja maksuperuste',
'oldest' => 'Vanhin kirjaus',
'approved' => 'Hyväksytty',
'unapproved' => 'Hyväksymättä',
'value' => 'Arvo (ALV 0)',
'in_price' => 'Sisältyy hintaan',
'missing_rate' => 'tuntihinta puuttuu',
'missing_rate_short' => '(osalta tuntihinta puuttuu)',
'by_work_type' => 'Työtehtävittäin: :job',
'work_type_line' => ':name: hyväksytty :approved h, hyväksymättä :unapproved h',
'chart' => 'Laskuttamattomien tuntien arvo palveluyksiköittäin',
'csv' => [
'job_number' => 'Työn numero',
'job' => 'Asiakastyö',
'customer' => 'Asiakas',
'status' => 'Tila',
'payment_basis' => 'Maksuperuste',
'service_unit' => 'Palveluyksikkö',
'work_type' => 'Työtehtävä',
'approved' => 'Hyväksytty',
'unapproved' => 'Hyväksymättä',
'rate' => 'Tuntihinta (snt)',
'value' => 'Arvo (snt)',
'oldest' => 'Vanhin kirjaus',
],
],
];