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]>
32 lines
797 B
PHP
32 lines
797 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Jobs\Application\DTOs;
|
|
|
|
use App\Modules\Jobs\Domain\Enums\JobStatus;
|
|
use App\Modules\Jobs\Domain\Enums\PaymentBasis;
|
|
|
|
/**
|
|
* A customer job as management's reports see it: whose it is, whether it
|
|
* is internal work, how it is billed and its service units.
|
|
*/
|
|
final readonly class JobReportInfo
|
|
{
|
|
/**
|
|
* @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 JobStatus $status,
|
|
public ?PaymentBasis $paymentBasis,
|
|
public ?int $quotedAmountCents,
|
|
public array $serviceUnitIds,
|
|
) {}
|
|
}
|