Files
bakery-ia/shared/demo/fixtures/enterprise/parent/08-orders.json

112 lines
3.5 KiB
JSON
Raw Normal View History

2025-12-13 23:57:54 +01:00
{
"customers": [
{
"id": "60000000-0000-0000-0000-000000002001",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"customer_code": "ENT-CUST-001",
"name": "Grupo Hotelero Mediterráneo",
"customer_type": "ENTERPRISE",
"contact_person": "Luis Gómez",
"email": "compras@grupohotelmed.com",
"phone": "+34 912 345 678",
"address": "Calle Gran Vía, 45",
"city": "Madrid",
"postal_code": "28013",
"country": "España",
"status": "ACTIVE",
"total_orders": 125,
"total_spent": 18500.75,
2025-12-14 11:58:14 +01:00
"created_at": "BASE_TS",
2025-12-13 23:57:54 +01:00
"notes": "Cadena hotelera con 15 ubicaciones en España",
"contract_type": "national_supply_agreement",
"annual_volume_commitment": 25000.0,
"enterprise_customer": true,
"delivery_locations": [
"Madrid Centro",
"Barcelona Gràcia",
"Valencia Ruzafa",
"Sevilla Santa Cruz",
"Málaga Centro"
]
}
],
"customer_orders": [
{
"id": "60000000-0000-0000-0000-000000002001",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"customer_id": "60000000-0000-0000-0000-000000002001",
"order_number": "ENT-ORD-20250115-001",
2025-12-14 11:58:14 +01:00
"order_date": "BASE_TS - 1d 5h",
"delivery_date": "BASE_TS + 3h",
2025-12-13 23:57:54 +01:00
"status": "DELIVERED",
2025-12-14 11:58:14 +01:00
"total_amount": 650.5,
"created_at": "BASE_TS",
2025-12-13 23:57:54 +01:00
"notes": "Pedido semanal para 5 hoteles",
"enterprise_order": true,
"contract_reference": "ENT-HOTEL-2024-001",
"delivery_locations": [
{
"location": "Hotel Mediterráneo Madrid",
"quantity": 50.0,
"delivery_time": "2025-01-15T09:00:00Z"
},
{
"location": "Hotel Mediterráneo Barcelona",
"quantity": 30.0,
"delivery_time": "2025-01-15T10:00:00Z"
},
{
"location": "Hotel Mediterráneo Valencia",
"quantity": 20.0,
"delivery_time": "2025-01-15T11:00:00Z"
}
]
}
],
"order_items": [
{
"id": "60000000-0000-0000-0000-000000002101",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"order_id": "60000000-0000-0000-0000-000000002001",
"product_id": "20000000-0000-0000-0000-000000000001",
"quantity": 100.0,
2025-12-14 11:58:14 +01:00
"unit_price": 2.5,
"total_price": 250.0,
"created_at": "BASE_TS",
2025-12-13 23:57:54 +01:00
"enterprise_item": true
},
{
"id": "60000000-0000-0000-0000-000000002102",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"order_id": "60000000-0000-0000-0000-000000002001",
"product_id": "20000000-0000-0000-0000-000000000002",
"quantity": 25.0,
"unit_price": 3.75,
"total_price": 93.75,
2025-12-14 11:58:14 +01:00
"created_at": "BASE_TS",
2025-12-13 23:57:54 +01:00
"enterprise_item": true
},
{
"id": "60000000-0000-0000-0000-000000002103",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"order_id": "60000000-0000-0000-0000-000000002001",
"product_id": "20000000-0000-0000-0000-000000000003",
"quantity": 20.0,
"unit_price": 2.25,
2025-12-14 11:58:14 +01:00
"total_price": 45.0,
"created_at": "BASE_TS",
2025-12-13 23:57:54 +01:00
"enterprise_item": true
},
{
"id": "60000000-0000-0000-0000-000000002104",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"order_id": "60000000-0000-0000-0000-000000002001",
"product_id": "20000000-0000-0000-0000-000000000004",
"quantity": 15.0,
"unit_price": 1.75,
"total_price": 26.25,
2025-12-14 11:58:14 +01:00
"created_at": "BASE_TS",
2025-12-13 23:57:54 +01:00
"enterprise_item": true
}
]
}