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
@@ -11,11 +11,13 @@ use Livewire\Attributes\Url;
/**
* The period every report page covers, kept in the URL (alku, loppu), its
* quick choices and the shared number formats. Without a valid period in
* quick choices and the shared formats. Without a valid period in
* the URL a page starts with the current month.
*/
trait ReportPage
{
use FormatsReports;
#[Url(as: 'alku', except: '')]
public string $from = '';
@@ -82,21 +84,6 @@ trait ReportPage
return $period === null ? '' : ReportFormat::period($period);
}
public function money(int $cents): string
{
return ReportFormat::money($cents);
}
public function hours(int $quarters): string
{
return ReportFormat::hours($quarters);
}
public function dateLabel(string $day): string
{
return ReportFormat::date($day);
}
/**
* The CSV of the report with the filters shown.
*