add test batches
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user