add test batches

This commit is contained in:
root
2026-06-08 23:45:55 -04:00
parent c792b8be05
commit 8d4d610b82
1480 changed files with 22587 additions and 10762 deletions
@@ -13,7 +13,8 @@ class InvoiceTuitionService
private float $secondStudentFee,
private float $youthFee,
private string $timezone
) {}
) {
}
public function calculateTuitionFee(array $registeredKids, array $withdrawnKids, ?string $refundDeadline): float
{
@@ -60,7 +61,7 @@ class InvoiceTuitionService
private function isRefundAllowed(?string $refundDeadline): bool
{
if (! $refundDeadline) {
if (!$refundDeadline) {
return true;
}
@@ -68,7 +69,6 @@ class InvoiceTuitionService
$tz = new \DateTimeZone($this->timezone);
$today = new \DateTimeImmutable('today', $tz);
$deadline = new \DateTimeImmutable($refundDeadline, $tz);
return $today <= $deadline;
} catch (\Throwable $e) {
return true;