refactor(catalog): add ticket_label to item attributes and update related logic

This commit is contained in:
2026-08-19 11:22:46 -03:00
parent 67e6211857
commit 16bc657a31
12 changed files with 114 additions and 11 deletions

View File

@@ -191,6 +191,20 @@ class DesfilePuraTendenciaSeederTest extends TestCase
->pluck('attribute.codigo')
->all(),
);
$this->assertSame(
[
'tipo' => null,
'sector' => 'Lado',
'fila' => 'Fila',
'asiento' => 'Asiento',
],
DB::table('item_attributes')
->join('attribute', 'attribute.id', '=', 'item_attributes.attribute_id')
->where('item_attributes.catalog_item_id', $catalogItem->id)
->orderBy('item_attributes.sort_order')
->pluck('item_attributes.ticket_label', 'attribute.codigo')
->all(),
);
$variants = DB::table('variantes')->where('catalog_item_id', $catalogItem->id);