refactor(catalog): add ticket_label to item attributes and update related logic
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user