add refund logic and fix books inventory logic
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 47s
Tests / PHPUnit (push) Failing after 1m20s

This commit is contained in:
root
2026-08-22 13:44:25 -04:00
parent 23d1cbb64c
commit d906a915d6
45 changed files with 4711 additions and 442 deletions
@@ -42,6 +42,14 @@ final class SchoolYearValidationService
}
$this->dateOrNull($payload['fall_makeup_exam_on'] ?? null);
$weeks = $payload['total_instructional_weeks'] ?? null;
if ($weeks !== null && trim((string) $weeks) !== '') {
$parsed = filter_var($weeks, FILTER_VALIDATE_INT);
if ($parsed === false || $parsed <= 0) {
throw new InvalidArgumentException('Total instructional weeks must be a positive whole number.');
}
}
}
public function isValidYearName(string $value): bool