Kanban / timesheet update
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\TimeTracking\Domain\Exceptions;
|
||||
|
||||
use App\Modules\Shared\Domain\Exceptions\DomainException;
|
||||
|
||||
/**
|
||||
* A week cannot be approved while any of its entries lacks a billing note
|
||||
* (docs/ui-timesheet.md 6).
|
||||
*/
|
||||
final class BillingNotesMissing extends DomainException
|
||||
{
|
||||
/**
|
||||
* @param list<int> $entryIds
|
||||
*/
|
||||
public function __construct(public readonly array $entryIds)
|
||||
{
|
||||
parent::__construct(count($entryIds).' time entries have no billing note.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user