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
@@ -11,7 +11,9 @@ use Illuminate\Support\Facades\DB;
class PaymentEventChargesService
{
public function __construct(private ChargeService $chargeService) {}
public function __construct(private ChargeService $chargeService)
{
}
public function listCharges(?string $schoolYear, ?string $semester): array
{
@@ -54,7 +56,7 @@ class PaymentEventChargesService
$count = 0;
if (! empty($studentIds)) {
if (!empty($studentIds)) {
foreach ($studentIds as $studentId) {
$result = $this->chargeService->createEventCharge([
'parent_id' => $parentId,
@@ -71,7 +73,7 @@ class PaymentEventChargesService
$count++;
}
}
} elseif (! empty($payload['student_id'])) {
} elseif (!empty($payload['student_id'])) {
$result = $this->chargeService->createEventCharge([
'parent_id' => $parentId,
'student_id' => (int) $payload['student_id'],