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
+4 -3
View File
@@ -9,7 +9,9 @@ use App\Services\Invoices\InvoiceGenerationService;
class EventChargeService
{
public function __construct(private InvoiceGenerationService $invoiceGeneration) {}
public function __construct(private InvoiceGenerationService $invoiceGeneration)
{
}
public function seedChargesForEvent(Event $event, string $schoolYear, string $semester, float $amount, int $actorId): array
{
@@ -80,7 +82,7 @@ class EventChargeService
int $actorId
): array {
$event = Event::getEvent($eventId, $schoolYear);
if (! $event) {
if (!$event) {
return ['ok' => false, 'message' => 'Event not found.'];
}
@@ -107,7 +109,6 @@ class EventChargeService
$existing->delete();
$deleted++;
}
continue;
}