feat(entry): add validation for single non-replaced variant in EntryResource and update tests
This commit is contained in:
@@ -25,6 +25,7 @@ class EntryService
|
||||
->where('tenant_code', $tenant->codigo)
|
||||
->whereHas('category', fn ($query) => $query->where('nombre', 'Entradas'))
|
||||
->with([
|
||||
'variants' => fn ($query) => $query->whereNull('replaced_by_variant_id'),
|
||||
'variants.inventory',
|
||||
'variants.eventDate',
|
||||
'variants.eventDates',
|
||||
|
||||
Reference in New Issue
Block a user