feat: expand client jobcard and reporting workflows

This commit is contained in:
Marco0300
2026-09-01 19:34:41 +02:00
parent 323afaf832
commit 703c3ca67d
10 changed files with 608 additions and 18 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ final class JobcardReference
{
public static function generate(int $sequence, ?int $year = null): string
{
if ($sequence < 1) {
throw new \InvalidArgumentException('Sequence must be positive.');
if ($sequence < 1 || $sequence > 999999) {
throw new \InvalidArgumentException('Sequence must be between 1 and 999999.');
}
$year ??= (int) date('Y');
if ($year < 2000 || $year > 9999) {