feat(event): filter event dates to exclude rescheduled and suspended entries

This commit is contained in:
2026-09-14 16:48:06 -03:00
parent b1e09b71ad
commit c27d9628fd
2 changed files with 22 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ class Attribute extends Model
public function eventDates(): HasMany
{
return $this->hasMany(EventDate::class, 'tenant_code', 'tenant_codigo')
->whereNull('rescheduled_to_event_date_id')
->whereNull('suspended_at')
->orderBy('date')
->orderBy('time_start');
}