feat(food): implement FoodController, FoodService, and related resources for managing food items and variants
refactor(catalog): add description and price fields to variants and update related resources feat(migration): add commercial overrides to variants with description and price fields test(food): add tests for FoodController and ensure correct seeding of food items and variants
This commit is contained in:
@@ -27,7 +27,7 @@ class PurchaseItemSnapshotFactory
|
||||
'source_variant_id' => $item->variant_id,
|
||||
'image_attachment_id' => $this->firstImageAttachment($item)?->id,
|
||||
'nombre' => $item->catalogItem->nombre,
|
||||
'descripcion' => $item->catalogItem->descripcion,
|
||||
'descripcion' => $selectedItem?->getDescription(),
|
||||
'slug' => $item->catalogItem->slug,
|
||||
'item_nombre' => $selectedItem->getName(),
|
||||
'variant_attributes' => $item->variant === null
|
||||
|
||||
Reference in New Issue
Block a user