feat: enable ticketing for Fiesta Futbol Infantil catalog items; update services, migrations, seeders, and tests to reflect changes

This commit is contained in:
2026-08-10 14:13:46 -03:00
parent 6844ab7af9
commit 17f4cb6502
9 changed files with 39 additions and 6 deletions

View File

@@ -137,7 +137,7 @@ class AccommodationService
'category_id' => $category->id,
'event_product_type' => EventProductType::Product->value,
'inventory_policy' => InventoryPolicy::Tracked->value,
'has_tickets' => false,
'has_tickets' => true,
]);
return $accommodation;
@@ -152,7 +152,7 @@ class AccommodationService
'precio' => collect($variants)->min('price') ?? 0,
'event_product_type' => EventProductType::Product->value,
'inventory_policy' => InventoryPolicy::Tracked->value,
'has_tickets' => false,
'has_tickets' => true,
'inventory_id' => null,
]);
}

View File

@@ -148,7 +148,7 @@ class FoodService
'category_id' => $category->id,
'event_product_type' => EventProductType::Product->value,
'inventory_policy' => InventoryPolicy::Tracked->value,
'has_tickets' => false,
'has_tickets' => true,
]);
return $food;
@@ -163,7 +163,7 @@ class FoodService
'precio' => collect($variants)->min('price') ?? 0,
'event_product_type' => EventProductType::Product->value,
'inventory_policy' => InventoryPolicy::Tracked->value,
'has_tickets' => false,
'has_tickets' => true,
'inventory_id' => null,
]);
}

View File

@@ -76,7 +76,7 @@ class MerchandiseService
'max_units_per_user' => (int) $data['max_units_per_user'],
'event_product_type' => EventProductType::Product->value,
'inventory_policy' => InventoryPolicy::Tracked->value,
'has_tickets' => false,
'has_tickets' => true,
]);
$itemAttributes = $this->itemAttributes($item, $attributes);
@@ -203,7 +203,7 @@ class MerchandiseService
'max_units_per_user' => (int) $data['max_units_per_user'],
'event_product_type' => EventProductType::Product->value,
'inventory_policy' => InventoryPolicy::Tracked->value,
'has_tickets' => false,
'has_tickets' => true,
'inventory_id' => null,
]);
}