demo seed change 2

This commit is contained in:
Urtzi Alfaro
2025-12-14 11:58:14 +01:00
parent ff830a3415
commit a030bd14c8
44 changed files with 3093 additions and 977 deletions

View File

@@ -11,11 +11,11 @@
"required_delivery_date": "BASE_TS - 4h",
"estimated_delivery_date": "BASE_TS - 4h",
"expected_delivery_date": "BASE_TS - 4h",
"subtotal": 500.00,
"tax_amount": 105.00,
"shipping_cost": 20.00,
"discount_amount": 0.00,
"total_amount": 625.00,
"subtotal": 500.0,
"tax_amount": 105.0,
"shipping_cost": 20.0,
"discount_amount": 0.0,
"total_amount": 625.0,
"currency": "EUR",
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
"delivery_instructions": "URGENTE: Entrega en almacén trasero",
@@ -39,11 +39,11 @@
"required_delivery_date": "BASE_TS + 2h30m",
"estimated_delivery_date": "BASE_TS + 2h30m",
"expected_delivery_date": "BASE_TS + 2h30m",
"subtotal": 300.00,
"tax_amount": 63.00,
"shipping_cost": 15.00,
"discount_amount": 0.00,
"total_amount": 378.00,
"subtotal": 300.0,
"tax_amount": 63.0,
"shipping_cost": 15.0,
"discount_amount": 0.0,
"total_amount": 378.0,
"currency": "EUR",
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
"delivery_instructions": "Mantener refrigerado",
@@ -61,73 +61,69 @@
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
"po_number": "PO-2025-001",
"supplier_id": "40000000-0000-0000-0000-000000000001",
"order_date_offset_days": -7,
"status": "completed",
"priority": "normal",
"required_delivery_date_offset_days": -2,
"estimated_delivery_date_offset_days": -2,
"expected_delivery_date_offset_days": -2,
"subtotal": 850.00,
"tax_amount": 178.50,
"shipping_cost": 25.00,
"discount_amount": 0.00,
"total_amount": 1053.50,
"subtotal": 850.0,
"tax_amount": 178.5,
"shipping_cost": 25.0,
"discount_amount": 0.0,
"total_amount": 1053.5,
"currency": "EUR",
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
"delivery_instructions": "Entrega en almacén trasero",
"delivery_contact": "Carlos Almacén",
"delivery_phone": "+34 910 123 456",
"requires_approval": false,
"sent_to_supplier_at_offset_days": -7,
"supplier_confirmation_date_offset_days": -6,
"supplier_reference": "SUP-REF-2025-001",
"notes": "Pedido habitual semanal de harinas",
"created_by": "50000000-0000-0000-0000-000000000005"
"created_by": "50000000-0000-0000-0000-000000000005",
"order_date": "BASE_TS - 7d",
"required_delivery_date": "BASE_TS - 2d",
"estimated_delivery_date": "BASE_TS - 2d",
"expected_delivery_date": "BASE_TS - 2d",
"sent_to_supplier_at": "BASE_TS - 7d",
"supplier_confirmation_date": "BASE_TS - 6d"
},
{
"id": "50000000-0000-0000-0000-000000000002",
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
"po_number": "PO-2025-002",
"supplier_id": "40000000-0000-0000-0000-000000000002",
"order_date_offset_days": -5,
"status": "completed",
"priority": "normal",
"required_delivery_date_offset_days": -1,
"estimated_delivery_date_offset_days": -1,
"expected_delivery_date_offset_days": -1,
"subtotal": 320.00,
"tax_amount": 67.20,
"shipping_cost": 15.00,
"discount_amount": 0.00,
"total_amount": 402.20,
"subtotal": 320.0,
"tax_amount": 67.2,
"shipping_cost": 15.0,
"discount_amount": 0.0,
"total_amount": 402.2,
"currency": "EUR",
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
"delivery_instructions": "Mantener refrigerado",
"delivery_contact": "Carlos Almacén",
"delivery_phone": "+34 910 123 456",
"requires_approval": false,
"sent_to_supplier_at_offset_days": -5,
"supplier_confirmation_date_offset_days": -4,
"supplier_reference": "LGIPUZ-2025-042",
"notes": "Pedido de lácteos para producción semanal",
"created_by": "50000000-0000-0000-0000-000000000005"
"created_by": "50000000-0000-0000-0000-000000000005",
"order_date": "BASE_TS - 5d",
"required_delivery_date": "BASE_TS - 1d",
"estimated_delivery_date": "BASE_TS - 1d",
"expected_delivery_date": "BASE_TS - 1d",
"sent_to_supplier_at": "BASE_TS - 5d",
"supplier_confirmation_date": "BASE_TS - 4d"
},
{
"id": "50000000-0000-0000-0000-000000000003",
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
"po_number": "PO-2025-003",
"supplier_id": "40000000-0000-0000-0000-000000000003",
"order_date_offset_days": -3,
"status": "approved",
"priority": "high",
"required_delivery_date_offset_days": 1,
"estimated_delivery_date_offset_days": 2,
"expected_delivery_date_offset_days": 2,
"subtotal": 450.00,
"tax_amount": 94.50,
"shipping_cost": 20.00,
"discount_amount": 22.50,
"total_amount": 542.00,
"subtotal": 450.0,
"tax_amount": 94.5,
"shipping_cost": 20.0,
"discount_amount": 22.5,
"total_amount": 542.0,
"currency": "EUR",
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
"delivery_instructions": "Requiere inspección de calidad",
@@ -136,7 +132,6 @@
"requires_approval": true,
"auto_approved": true,
"auto_approval_rule_id": "10000000-0000-0000-0000-000000000001",
"approved_at_offset_days": -2,
"approved_by": "50000000-0000-0000-0000-000000000006",
"notes": "Pedido urgente para nueva línea de productos ecológicos - Auto-aprobado por IA",
"reasoning_data": {
@@ -152,32 +147,31 @@
"eu": "Auto-onartuta: €500ko mugaren azpian eta hornitzaile ziurtatutik"
}
},
"created_by": "50000000-0000-0000-0000-000000000005"
"created_by": "50000000-0000-0000-0000-000000000005",
"order_date": "BASE_TS - 3d",
"required_delivery_date": "BASE_TS + 1d",
"estimated_delivery_date": "BASE_TS + 2d",
"expected_delivery_date": "BASE_TS + 2d",
"approved_at": "BASE_TS - 2d"
},
{
"id": "50000000-0000-0000-0000-000000000004",
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
"po_number": "PO-2025-004-URGENT",
"supplier_id": "40000000-0000-0000-0000-000000000001",
"order_date_offset_days": -0.5,
"status": "confirmed",
"priority": "urgent",
"required_delivery_date_offset_days": -0.167,
"estimated_delivery_date_offset_days": 0.083,
"expected_delivery_date_offset_days": -0.167,
"subtotal": 1200.00,
"tax_amount": 252.00,
"shipping_cost": 35.00,
"discount_amount": 60.00,
"total_amount": 1427.00,
"subtotal": 1200.0,
"tax_amount": 252.0,
"shipping_cost": 35.0,
"discount_amount": 60.0,
"total_amount": 1427.0,
"currency": "EUR",
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
"delivery_instructions": "URGENTE - Entrega antes de las 10:00 AM",
"delivery_contact": "Isabel Producción",
"delivery_phone": "+34 910 123 456",
"requires_approval": false,
"sent_to_supplier_at_offset_days": -0.5,
"supplier_confirmation_date_offset_days": -0.4,
"supplier_reference": "SUP-URGENT-2025-005",
"notes": "EDGE CASE: Entrega retrasada - debió llegar hace 4 horas. Stock crítico de harina",
"reasoning_data": {
@@ -193,52 +187,54 @@
"eu": "Presazkoa: Entrega 4 ordu berandu, gaurko ekoizpena eraginda"
}
},
"created_by": "50000000-0000-0000-0000-000000000006"
"created_by": "50000000-0000-0000-0000-000000000006",
"order_date": "BASE_TS - 0.5d",
"required_delivery_date": "BASE_TS - 0.167d",
"estimated_delivery_date": "BASE_TS + 0.083d",
"expected_delivery_date": "BASE_TS - 0.167d",
"sent_to_supplier_at": "BASE_TS - 0.5d",
"supplier_confirmation_date": "BASE_TS - 0.4d"
},
{
"id": "50000000-0000-0000-0000-000000000007",
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
"po_number": "PO-2025-007",
"supplier_id": "40000000-0000-0000-0000-000000000004",
"order_date_offset_days": -7,
"status": "completed",
"priority": "normal",
"required_delivery_date_offset_days": -5,
"estimated_delivery_date_offset_days": -5,
"expected_delivery_date_offset_days": -5,
"subtotal": 450.00,
"tax_amount": 94.50,
"shipping_cost": 25.00,
"discount_amount": 0.00,
"total_amount": 569.50,
"subtotal": 450.0,
"tax_amount": 94.5,
"shipping_cost": 25.0,
"discount_amount": 0.0,
"total_amount": 569.5,
"currency": "EUR",
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
"delivery_instructions": "Entrega en horario de mañana",
"delivery_contact": "Carlos Almacén",
"delivery_phone": "+34 910 123 456",
"requires_approval": false,
"sent_to_supplier_at_offset_days": -7,
"supplier_confirmation_date_offset_days": -6,
"supplier_reference": "SUP-REF-2025-007",
"notes": "Pedido de ingredientes especiales para línea premium - Entregado hace 5 días",
"created_by": "50000000-0000-0000-0000-000000000005"
"created_by": "50000000-0000-0000-0000-000000000005",
"order_date": "BASE_TS - 7d",
"required_delivery_date": "BASE_TS - 5d",
"estimated_delivery_date": "BASE_TS - 5d",
"expected_delivery_date": "BASE_TS - 5d",
"sent_to_supplier_at": "BASE_TS - 7d",
"supplier_confirmation_date": "BASE_TS - 6d"
},
{
"id": "50000000-0000-0000-0000-000000000005",
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
"po_number": "PO-2025-005",
"supplier_id": "40000000-0000-0000-0000-000000000004",
"order_date_offset_days": 0,
"status": "draft",
"priority": "normal",
"required_delivery_date_offset_days": 3,
"estimated_delivery_date_offset_days": 3,
"expected_delivery_date_offset_days": 3,
"subtotal": 280.00,
"tax_amount": 58.80,
"shipping_cost": 12.00,
"discount_amount": 0.00,
"total_amount": 350.80,
"subtotal": 280.0,
"tax_amount": 58.8,
"shipping_cost": 12.0,
"discount_amount": 0.0,
"total_amount": 350.8,
"currency": "EUR",
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
"delivery_instructions": "Llamar antes de entregar",
@@ -246,23 +242,23 @@
"delivery_phone": "+34 910 123 456",
"requires_approval": false,
"notes": "Pedido planificado para reposición semanal",
"created_by": "50000000-0000-0000-0000-000000000005"
"created_by": "50000000-0000-0000-0000-000000000005",
"order_date": "BASE_TS",
"required_delivery_date": "BASE_TS + 3d",
"estimated_delivery_date": "BASE_TS + 3d",
"expected_delivery_date": "BASE_TS + 3d"
},
{
"id": "50000000-0000-0000-0000-000000000006",
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
"po_number": "PO-2025-006",
"supplier_id": "40000000-0000-0000-0000-000000000002",
"order_date_offset_days": -0.5,
"status": "sent_to_supplier",
"priority": "high",
"required_delivery_date_offset_days": 0.25,
"estimated_delivery_date_offset_days": 0.25,
"expected_delivery_date_offset_days": 0.25,
"subtotal": 195.00,
"subtotal": 195.0,
"tax_amount": 40.95,
"shipping_cost": 10.00,
"discount_amount": 0.00,
"shipping_cost": 10.0,
"discount_amount": 0.0,
"total_amount": 245.95,
"currency": "EUR",
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
@@ -270,9 +266,13 @@
"delivery_contact": "Carlos Almacén",
"delivery_phone": "+34 910 123 456",
"requires_approval": false,
"sent_to_supplier_at_offset_days": -0.5,
"notes": "⏰ EDGE CASE: Entrega esperada en 6 horas - mantequilla para producción de croissants de mañana",
"created_by": "50000000-0000-0000-0000-000000000006"
"created_by": "50000000-0000-0000-0000-000000000006",
"order_date": "BASE_TS - 0.5d",
"required_delivery_date": "BASE_TS + 0.25d",
"estimated_delivery_date": "BASE_TS + 0.25d",
"expected_delivery_date": "BASE_TS + 0.25d",
"sent_to_supplier_at": "BASE_TS - 0.5d"
}
],
"purchase_order_items": [
@@ -286,7 +286,7 @@
"ordered_quantity": 500.0,
"unit_of_measure": "kilograms",
"unit_price": 0.85,
"line_total": 425.00,
"line_total": 425.0,
"received_quantity": 500.0,
"remaining_quantity": 0.0
},
@@ -300,7 +300,7 @@
"ordered_quantity": 200.0,
"unit_of_measure": "kilograms",
"unit_price": 0.95,
"line_total": 190.00,
"line_total": 190.0,
"received_quantity": 200.0,
"remaining_quantity": 0.0
},
@@ -314,7 +314,7 @@
"ordered_quantity": 100.0,
"unit_of_measure": "kilograms",
"unit_price": 1.15,
"line_total": 115.00,
"line_total": 115.0,
"received_quantity": 100.0,
"remaining_quantity": 0.0
},
@@ -327,8 +327,8 @@
"product_code": "SAL-MAR-006",
"ordered_quantity": 50.0,
"unit_of_measure": "kilograms",
"unit_price": 2.40,
"line_total": 120.00,
"unit_price": 2.4,
"line_total": 120.0,
"received_quantity": 50.0,
"remaining_quantity": 0.0
},
@@ -341,8 +341,8 @@
"product_code": "MANT-001",
"ordered_quantity": 80.0,
"unit_of_measure": "kilograms",
"unit_price": 4.00,
"line_total": 320.00,
"unit_price": 4.0,
"line_total": 320.0,
"received_quantity": 80.0,
"remaining_quantity": 0.0
},
@@ -355,8 +355,8 @@
"product_code": "HAR-T55-001",
"ordered_quantity": 1000.0,
"unit_of_measure": "kilograms",
"unit_price": 0.80,
"line_total": 800.00,
"unit_price": 0.8,
"line_total": 800.0,
"received_quantity": 0.0,
"remaining_quantity": 1000.0,
"notes": "URGENTE - Stock crítico"
@@ -370,8 +370,8 @@
"product_code": "LEV-FRESC-001",
"ordered_quantity": 50.0,
"unit_of_measure": "kilograms",
"unit_price": 8.00,
"line_total": 400.00,
"unit_price": 8.0,
"line_total": 400.0,
"received_quantity": 0.0,
"remaining_quantity": 50.0,
"notes": "Stock agotado - prioridad máxima"
@@ -385,8 +385,8 @@
"product_code": "MANT-001",
"ordered_quantity": 30.0,
"unit_of_measure": "kilograms",
"unit_price": 6.50,
"line_total": 195.00,
"unit_price": 6.5,
"line_total": 195.0,
"received_quantity": 0.0,
"remaining_quantity": 30.0
},
@@ -399,8 +399,8 @@
"product_code": "CHO-NEG-001",
"ordered_quantity": 20.0,
"unit_of_measure": "kilograms",
"unit_price": 15.50,
"line_total": 310.00,
"unit_price": 15.5,
"line_total": 310.0,
"received_quantity": 20.0,
"remaining_quantity": 0.0
},
@@ -413,8 +413,8 @@
"product_code": "ALM-LAM-001",
"ordered_quantity": 15.0,
"unit_of_measure": "kilograms",
"unit_price": 8.90,
"line_total": 133.50,
"unit_price": 8.9,
"line_total": 133.5,
"received_quantity": 15.0,
"remaining_quantity": 0.0
},
@@ -427,8 +427,8 @@
"product_code": "PAS-COR-001",
"ordered_quantity": 10.0,
"unit_of_measure": "kilograms",
"unit_price": 4.50,
"line_total": 45.00,
"unit_price": 4.5,
"line_total": 45.0,
"received_quantity": 10.0,
"remaining_quantity": 0.0
}