Fix Demo enterprise

This commit is contained in:
Urtzi Alfaro
2025-12-17 13:03:52 +01:00
parent 0bbfa010bf
commit 8bfe4f2dd7
111 changed files with 26200 additions and 2245 deletions

View File

@@ -1,112 +1,200 @@
{
"customers": [
{
"id": "60000000-0000-0000-0000-000000002001",
"id": "A0000000-0000-4000-a000-000000000001",
"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",
"name": "Madrid - Salamanca",
"customer_type": "WHOLESALE",
"email": "mad@panaderiaartesana.es",
"phone": "+34 910 123 400",
"address": "Calle de Serrano, 48",
"city": "Madrid",
"postal_code": "28001",
"created_at": "BASE_TS - 365d",
"customer_code": "CUST-0001",
"contact_person": "N/A",
"total_orders": 0,
"total_spent": 0.0,
"status": "ACTIVE",
"country": "Espa\u00f1a",
"notes": ""
},
{
"id": "B0000000-0000-4000-a000-000000000001",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"name": "Barcelona - Eixample",
"customer_type": "WHOLESALE",
"email": "bcn@panaderiaartesana.es",
"phone": "+34 911 123 401",
"address": "Passeig de Gr\u00e0cia, 92",
"city": "Barcelona",
"postal_code": "08008",
"created_at": "BASE_TS - 365d",
"customer_code": "CUST-0001",
"contact_person": "N/A",
"total_orders": 0,
"total_spent": 0.0,
"status": "ACTIVE",
"country": "Espa\u00f1a",
"notes": ""
},
{
"id": "C0000000-0000-4000-a000-000000000001",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"name": "Valencia - Ruzafa",
"customer_type": "WHOLESALE",
"email": "vlc@panaderiaartesana.es",
"phone": "+34 912 123 402",
"address": "Calle de Sueca, 25",
"city": "Valencia",
"postal_code": "46006",
"created_at": "BASE_TS - 365d",
"customer_code": "CUST-0001",
"contact_person": "N/A",
"total_orders": 0,
"total_spent": 0.0,
"status": "ACTIVE",
"country": "Espa\u00f1a",
"notes": ""
},
{
"id": "D0000000-0000-4000-a000-000000000001",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"name": "Seville - Triana",
"customer_type": "WHOLESALE",
"email": "sev@panaderiaartesana.es",
"phone": "+34 913 123 403",
"address": "Calle Betis, 15",
"city": "Seville",
"postal_code": "41010",
"created_at": "BASE_TS - 365d",
"customer_code": "CUST-0001",
"contact_person": "N/A",
"total_orders": 0,
"total_spent": 0.0,
"status": "ACTIVE",
"country": "Espa\u00f1a",
"notes": ""
},
{
"id": "E0000000-0000-4000-a000-000000000001",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"name": "Bilbao - Casco Viejo",
"customer_type": "WHOLESALE",
"email": "bil@panaderiaartesana.es",
"phone": "+34 914 123 404",
"address": "Calle Somera, 8",
"city": "Bilbao",
"postal_code": "48005",
"created_at": "BASE_TS - 365d",
"customer_code": "CUST-0001",
"contact_person": "N/A",
"total_orders": 0,
"total_spent": 0.0,
"status": "ACTIVE",
"country": "Espa\u00f1a",
"notes": ""
},
{
"id": "60000000-0000-0000-0000-000000000001",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"customer_code": "CUST-001",
"name": "Restaurante El Buen Yantar",
"customer_type": "WHOLESALE",
"contact_person": "Luis G\u00f3mez",
"email": "compras@buenyantar.es",
"phone": "+34 912 345 678",
"address": "Calle Gran Vía, 45",
"address": "Calle Mayor, 45",
"city": "Madrid",
"postal_code": "28013",
"country": "España",
"country": "Espa\u00f1a",
"status": "ACTIVE",
"total_orders": 125,
"total_spent": 18500.75,
"total_orders": 45,
"total_spent": 3250.75,
"created_at": "BASE_TS",
"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": [
"notes": "Regular wholesale customer - weekly orders"
},
{
"id": "60000000-0000-0000-0000-000000002001",
"id": "60000000-0000-0000-0000-000000000002",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"customer_id": "60000000-0000-0000-0000-000000002001",
"order_number": "ENT-ORD-20250115-001",
"order_date": "BASE_TS - 1d 5h",
"delivery_date": "BASE_TS + 3h",
"status": "DELIVERED",
"total_amount": 650.5,
"customer_code": "CUST-002",
"name": "Cafeter\u00eda La Esquina",
"customer_type": "WHOLESALE",
"contact_person": "Marta Ruiz",
"email": "cafeteria@laesquina.com",
"phone": "+34 913 456 789",
"address": "Plaza del Sol, 12",
"city": "Madrid",
"postal_code": "28012",
"country": "Espa\u00f1a",
"status": "ACTIVE",
"total_orders": 12,
"total_spent": 850.2,
"created_at": "BASE_TS",
"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"
}
]
"notes": "Small retail customer - biweekly orders"
},
{
"id": "60000000-0000-0000-0000-000000000003",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"customer_code": "CUST-003",
"name": "Hotel Madrid Plaza",
"customer_type": "WHOLESALE",
"contact_person": "Carlos Fern\u00e1ndez",
"email": "compras@hotelmadridplaza.com",
"phone": "+34 914 567 890",
"address": "Calle Gran V\u00eda, 25",
"city": "Madrid",
"postal_code": "28013",
"country": "Espa\u00f1a",
"status": "ACTIVE",
"total_orders": 28,
"total_spent": 2150.5,
"created_at": "BASE_TS",
"notes": "Hotel chain - large volume orders"
}
],
"order_items": [
{
"id": "60000000-0000-0000-0000-000000002101",
"id": "60000000-0000-0000-0000-000000000101",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"order_id": "60000000-0000-0000-0000-000000002001",
"order_id": "60000000-0000-0000-0000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000001",
"quantity": 100.0,
"unit_price": 2.5,
"total_price": 250.0,
"created_at": "BASE_TS",
"enterprise_item": true
"quantity": 250.0,
"unit_price": 2.12,
"total_price": 125.0,
"created_at": "BASE_TS"
},
{
"id": "60000000-0000-0000-0000-000000002102",
"id": "60000000-0000-0000-0000-000000000102",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"order_id": "60000000-0000-0000-0000-000000002001",
"order_id": "60000000-0000-0000-0000-000000000002",
"product_id": "20000000-0000-0000-0000-000000000002",
"quantity": 25.0,
"unit_price": 3.75,
"total_price": 93.75,
"created_at": "BASE_TS",
"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,
"quantity": 60.0,
"unit_price": 3.19,
"total_price": 45.0,
"created_at": "BASE_TS",
"enterprise_item": true
"created_at": "BASE_TS"
},
{
"id": "60000000-0000-0000-0000-000000002104",
"id": "60000000-0000-0000-0000-000000000199",
"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,
"order_id": "60000000-0000-0000-0000-000000000099",
"product_id": "20000000-0000-0000-0000-000000000001",
"quantity": 375.0,
"unit_price": 2.08,
"total_price": 183.75,
"created_at": "BASE_TS",
"enterprise_item": true
"notes": "Urgent delivery - priority processing"
},
{
"id": "60000000-0000-0000-0000-000000000103",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"order_id": "60000000-0000-0000-0000-000000000100",
"product_id": "20000000-0000-0000-0000-000000000003",
"quantity": 100.0,
"unit_price": 2.76,
"total_price": 65.0,
"created_at": "BASE_TS"
}
]
],
"customer_orders": []
}