add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
@@ -2,9 +2,9 @@
namespace App\Services\Parents;
use App\Models\Enrollment;
use App\Models\Event;
use App\Models\EventCharges;
use App\Models\Enrollment;
use App\Models\Student;
use App\Services\Invoices\InvoiceGenerationService;
@@ -13,7 +13,8 @@ class ParentEventParticipationService
public function __construct(
private ParentConfigService $configService,
private InvoiceGenerationService $invoiceGeneration
) {}
) {
}
public function overview(int $parentId): array
{
@@ -26,7 +27,7 @@ class ParentEventParticipationService
$charges = [];
foreach ($chargesList as $charge) {
$key = $charge['student_id'].':'.$charge['event_id'];
$key = $charge['student_id'] . ':' . $charge['event_id'];
$charges[$key] = [
'participation' => $charge['participation'],
'date' => $charge['updated_at'] ?? $charge['created_at'],
@@ -106,7 +107,6 @@ class ParentEventParticipationService
if ($existing) {
$existing->delete();
}
continue;
}