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]>
33 lines
905 B
PHP
33 lines
905 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Reports\Application\DTOs;
|
|
|
|
/**
|
|
* A customer job in a report. Status and payment basis are the Jobs
|
|
* module's keys (e.g. "done", "hourly"). A job bills its hours when its
|
|
* hours are priced by the hourly rates (hourly or price list work), and is
|
|
* billable when it is a customer's job that is billed at all.
|
|
*/
|
|
final readonly class ReportJob
|
|
{
|
|
/**
|
|
* @param list<int> $serviceUnitIds
|
|
*/
|
|
public function __construct(
|
|
public int $id,
|
|
public string $number,
|
|
public string $name,
|
|
public int $customerId,
|
|
public string $customerName,
|
|
public bool $isInternal,
|
|
public string $status,
|
|
public ?string $paymentBasis,
|
|
public bool $isBillable,
|
|
public bool $billsHours,
|
|
public ?int $quotedAmountCents,
|
|
public array $serviceUnitIds,
|
|
) {}
|
|
}
|