feature/refund #7

Merged
ncoronel merged 63 commits from feature/refund into homo 2026-09-17 15:19:27 +00:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 9aa0c1f3b9 - Show all commits

View File

@ -24,8 +24,13 @@ class EntryService
return CatalogItem::query()
->where('tenant_code', $tenant->codigo)
->whereHas('category', fn ($query) => $query->where('nombre', 'Entradas'))
->whereHas('variants', fn ($query) => $query
->whereNull('replaced_by_variant_id')
->whereNull('sales_disabled_at'))
->with([
'variants' => fn ($query) => $query->whereNull('replaced_by_variant_id'),
'variants' => fn ($query) => $query
->whereNull('replaced_by_variant_id')
->whereNull('sales_disabled_at'),
'variants.inventory',
'variants.eventDate',
'variants.eventDates',