2025-12-13 23:57:54 +01:00
|
|
|
{
|
|
|
|
|
"purchase_orders": [
|
|
|
|
|
{
|
|
|
|
|
"id": "50000000-0000-0000-0000-0000000000c1",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"po_number": "PO-LATE-0001",
|
|
|
|
|
"supplier_id": "40000000-0000-0000-0000-000000000001",
|
|
|
|
|
"order_date": "BASE_TS - 1d",
|
|
|
|
|
"status": "pending_approval",
|
|
|
|
|
"priority": "high",
|
|
|
|
|
"required_delivery_date": "BASE_TS - 4h",
|
|
|
|
|
"estimated_delivery_date": "BASE_TS - 4h",
|
|
|
|
|
"expected_delivery_date": "BASE_TS - 4h",
|
2025-12-14 11:58:14 +01:00
|
|
|
"subtotal": 500.0,
|
|
|
|
|
"tax_amount": 105.0,
|
|
|
|
|
"shipping_cost": 20.0,
|
|
|
|
|
"discount_amount": 0.0,
|
|
|
|
|
"total_amount": 625.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"currency": "EUR",
|
|
|
|
|
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
|
|
|
|
|
"delivery_instructions": "URGENTE: Entrega en almacén trasero",
|
|
|
|
|
"delivery_contact": "Carlos Almacén",
|
|
|
|
|
"delivery_phone": "+34 910 123 456",
|
|
|
|
|
"requires_approval": true,
|
|
|
|
|
"sent_to_supplier_at": "BASE_TS - 1d",
|
|
|
|
|
"supplier_confirmation_date": "BASE_TS - 23h",
|
|
|
|
|
"supplier_reference": "SUP-REF-LATE-001",
|
|
|
|
|
"notes": "⚠️ EDGE CASE: Delivery should have arrived 4 hours ago - will trigger red supplier delay alert",
|
|
|
|
|
"created_by": "50000000-0000-0000-0000-000000000005"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "50000000-0000-0000-0000-0000000000c2",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"po_number": "PO-UPCOMING-0001",
|
|
|
|
|
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
|
|
|
|
"order_date": "BASE_TS - 1h",
|
|
|
|
|
"status": "pending_approval",
|
|
|
|
|
"priority": "medium",
|
|
|
|
|
"required_delivery_date": "BASE_TS + 2h30m",
|
|
|
|
|
"estimated_delivery_date": "BASE_TS + 2h30m",
|
|
|
|
|
"expected_delivery_date": "BASE_TS + 2h30m",
|
2025-12-14 11:58:14 +01:00
|
|
|
"subtotal": 300.0,
|
|
|
|
|
"tax_amount": 63.0,
|
|
|
|
|
"shipping_cost": 15.0,
|
|
|
|
|
"discount_amount": 0.0,
|
|
|
|
|
"total_amount": 378.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"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": true,
|
|
|
|
|
"sent_to_supplier_at": "BASE_TS - 1h",
|
|
|
|
|
"supplier_confirmation_date": "BASE_TS - 30m",
|
|
|
|
|
"supplier_reference": "SUP-REF-UPCOMING-001",
|
|
|
|
|
"notes": "⚠️ EDGE CASE: Delivery expected in 2.5 hours - will show in upcoming deliveries",
|
|
|
|
|
"created_by": "50000000-0000-0000-0000-000000000005"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "50000000-0000-0000-0000-000000000001",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"po_number": "PO-2025-001",
|
|
|
|
|
"supplier_id": "40000000-0000-0000-0000-000000000001",
|
|
|
|
|
"status": "completed",
|
|
|
|
|
"priority": "normal",
|
2025-12-14 11:58:14 +01:00
|
|
|
"subtotal": 850.0,
|
|
|
|
|
"tax_amount": 178.5,
|
|
|
|
|
"shipping_cost": 25.0,
|
|
|
|
|
"discount_amount": 0.0,
|
|
|
|
|
"total_amount": 1053.5,
|
2025-12-13 23:57:54 +01:00
|
|
|
"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,
|
|
|
|
|
"supplier_reference": "SUP-REF-2025-001",
|
|
|
|
|
"notes": "Pedido habitual semanal de harinas",
|
2025-12-14 11:58:14 +01:00
|
|
|
"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"
|
2025-12-13 23:57:54 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"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",
|
|
|
|
|
"status": "completed",
|
|
|
|
|
"priority": "normal",
|
2025-12-14 11:58:14 +01:00
|
|
|
"subtotal": 320.0,
|
|
|
|
|
"tax_amount": 67.2,
|
|
|
|
|
"shipping_cost": 15.0,
|
|
|
|
|
"discount_amount": 0.0,
|
|
|
|
|
"total_amount": 402.2,
|
2025-12-13 23:57:54 +01:00
|
|
|
"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,
|
|
|
|
|
"supplier_reference": "LGIPUZ-2025-042",
|
|
|
|
|
"notes": "Pedido de lácteos para producción semanal",
|
2025-12-14 11:58:14 +01:00
|
|
|
"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"
|
2025-12-13 23:57:54 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"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",
|
|
|
|
|
"status": "approved",
|
|
|
|
|
"priority": "high",
|
2025-12-14 11:58:14 +01:00
|
|
|
"subtotal": 450.0,
|
|
|
|
|
"tax_amount": 94.5,
|
|
|
|
|
"shipping_cost": 20.0,
|
|
|
|
|
"discount_amount": 22.5,
|
|
|
|
|
"total_amount": 542.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"currency": "EUR",
|
|
|
|
|
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
|
|
|
|
|
"delivery_instructions": "Requiere inspección de calidad",
|
|
|
|
|
"delivery_contact": "Pedro Calidad",
|
|
|
|
|
"delivery_phone": "+34 910 123 456",
|
|
|
|
|
"requires_approval": true,
|
|
|
|
|
"auto_approved": true,
|
|
|
|
|
"auto_approval_rule_id": "10000000-0000-0000-0000-000000000001",
|
|
|
|
|
"approved_by": "50000000-0000-0000-0000-000000000006",
|
|
|
|
|
"notes": "Pedido urgente para nueva línea de productos ecológicos - Auto-aprobado por IA",
|
|
|
|
|
"reasoning_data": {
|
|
|
|
|
"job": "ensure_quality_ingredients",
|
|
|
|
|
"context": {
|
|
|
|
|
"en": "Organic ingredients needed for new product line",
|
|
|
|
|
"es": "Ingredientes ecológicos necesarios para nueva línea de productos",
|
|
|
|
|
"eu": "Produktu lerro berrirako osagai ekologikoak behar dira"
|
|
|
|
|
},
|
|
|
|
|
"decision": {
|
|
|
|
|
"en": "Auto-approved: Under €500 threshold and from certified supplier",
|
|
|
|
|
"es": "Auto-aprobado: Bajo umbral de €500 y de proveedor certificado",
|
|
|
|
|
"eu": "Auto-onartuta: €500ko mugaren azpian eta hornitzaile ziurtatutik"
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-12-14 11:58:14 +01:00
|
|
|
"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"
|
2025-12-13 23:57:54 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"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",
|
|
|
|
|
"status": "confirmed",
|
|
|
|
|
"priority": "urgent",
|
2025-12-14 11:58:14 +01:00
|
|
|
"subtotal": 1200.0,
|
|
|
|
|
"tax_amount": 252.0,
|
|
|
|
|
"shipping_cost": 35.0,
|
|
|
|
|
"discount_amount": 60.0,
|
|
|
|
|
"total_amount": 1427.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"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,
|
|
|
|
|
"supplier_reference": "SUP-URGENT-2025-005",
|
|
|
|
|
"notes": "EDGE CASE: Entrega retrasada - debió llegar hace 4 horas. Stock crítico de harina",
|
|
|
|
|
"reasoning_data": {
|
|
|
|
|
"job": "avoid_production_stoppage",
|
|
|
|
|
"context": {
|
|
|
|
|
"en": "Critical flour shortage - production at risk",
|
|
|
|
|
"es": "Escasez crítica de harina - producción en riesgo",
|
|
|
|
|
"eu": "Irina-faltagatik ekoizpena arriskuan"
|
|
|
|
|
},
|
|
|
|
|
"urgency": {
|
|
|
|
|
"en": "Urgent: Delivery delayed 4 hours, affecting today's production",
|
|
|
|
|
"es": "Urgente: Entrega retrasada 4 horas, afectando la producción de hoy",
|
|
|
|
|
"eu": "Presazkoa: Entrega 4 ordu berandu, gaurko ekoizpena eraginda"
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-12-14 11:58:14 +01:00
|
|
|
"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"
|
2025-12-13 23:57:54 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"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",
|
|
|
|
|
"status": "completed",
|
|
|
|
|
"priority": "normal",
|
2025-12-14 11:58:14 +01:00
|
|
|
"subtotal": 450.0,
|
|
|
|
|
"tax_amount": 94.5,
|
|
|
|
|
"shipping_cost": 25.0,
|
|
|
|
|
"discount_amount": 0.0,
|
|
|
|
|
"total_amount": 569.5,
|
2025-12-13 23:57:54 +01:00
|
|
|
"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,
|
|
|
|
|
"supplier_reference": "SUP-REF-2025-007",
|
|
|
|
|
"notes": "Pedido de ingredientes especiales para línea premium - Entregado hace 5 días",
|
2025-12-14 11:58:14 +01:00
|
|
|
"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"
|
2025-12-13 23:57:54 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"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",
|
|
|
|
|
"status": "draft",
|
|
|
|
|
"priority": "normal",
|
2025-12-14 11:58:14 +01:00
|
|
|
"subtotal": 280.0,
|
|
|
|
|
"tax_amount": 58.8,
|
|
|
|
|
"shipping_cost": 12.0,
|
|
|
|
|
"discount_amount": 0.0,
|
|
|
|
|
"total_amount": 350.8,
|
2025-12-13 23:57:54 +01:00
|
|
|
"currency": "EUR",
|
|
|
|
|
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
|
|
|
|
|
"delivery_instructions": "Llamar antes de entregar",
|
|
|
|
|
"delivery_contact": "Carlos Almacén",
|
|
|
|
|
"delivery_phone": "+34 910 123 456",
|
|
|
|
|
"requires_approval": false,
|
|
|
|
|
"notes": "Pedido planificado para reposición semanal",
|
2025-12-14 11:58:14 +01:00
|
|
|
"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"
|
2025-12-13 23:57:54 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"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",
|
|
|
|
|
"status": "sent_to_supplier",
|
|
|
|
|
"priority": "high",
|
2025-12-14 11:58:14 +01:00
|
|
|
"subtotal": 195.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"tax_amount": 40.95,
|
2025-12-14 11:58:14 +01:00
|
|
|
"shipping_cost": 10.0,
|
|
|
|
|
"discount_amount": 0.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"total_amount": 245.95,
|
|
|
|
|
"currency": "EUR",
|
|
|
|
|
"delivery_address": "Calle Panadería, 45, 28001 Madrid",
|
|
|
|
|
"delivery_instructions": "Mantener cadena de frío - Entrega urgente para producción",
|
|
|
|
|
"delivery_contact": "Carlos Almacén",
|
|
|
|
|
"delivery_phone": "+34 910 123 456",
|
|
|
|
|
"requires_approval": false,
|
|
|
|
|
"notes": "⏰ EDGE CASE: Entrega esperada en 6 horas - mantequilla para producción de croissants de mañana",
|
2025-12-14 11:58:14 +01:00
|
|
|
"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"
|
2025-12-13 23:57:54 +01:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"purchase_order_items": [
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000001",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000001",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000001",
|
|
|
|
|
"product_name": "Harina de Trigo T55",
|
|
|
|
|
"product_code": "HAR-T55-001",
|
|
|
|
|
"ordered_quantity": 500.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
|
|
|
|
"unit_price": 0.85,
|
2025-12-14 11:58:14 +01:00
|
|
|
"line_total": 425.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 500.0,
|
|
|
|
|
"remaining_quantity": 0.0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000002",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000001",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000002",
|
|
|
|
|
"product_name": "Harina de Trigo T65",
|
|
|
|
|
"product_code": "HAR-T65-002",
|
|
|
|
|
"ordered_quantity": 200.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
|
|
|
|
"unit_price": 0.95,
|
2025-12-14 11:58:14 +01:00
|
|
|
"line_total": 190.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 200.0,
|
|
|
|
|
"remaining_quantity": 0.0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000003",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000001",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000005",
|
|
|
|
|
"product_name": "Harina Centeno",
|
|
|
|
|
"product_code": "HAR-CENT-005",
|
|
|
|
|
"ordered_quantity": 100.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
|
|
|
|
"unit_price": 1.15,
|
2025-12-14 11:58:14 +01:00
|
|
|
"line_total": 115.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 100.0,
|
|
|
|
|
"remaining_quantity": 0.0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000004",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000001",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000006",
|
|
|
|
|
"product_name": "Sal Marina",
|
|
|
|
|
"product_code": "SAL-MAR-006",
|
|
|
|
|
"ordered_quantity": 50.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
2025-12-14 11:58:14 +01:00
|
|
|
"unit_price": 2.4,
|
|
|
|
|
"line_total": 120.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 50.0,
|
|
|
|
|
"remaining_quantity": 0.0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000005",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000002",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000011",
|
|
|
|
|
"product_name": "Mantequilla sin Sal 82% MG",
|
|
|
|
|
"product_code": "MANT-001",
|
|
|
|
|
"ordered_quantity": 80.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
2025-12-14 11:58:14 +01:00
|
|
|
"unit_price": 4.0,
|
|
|
|
|
"line_total": 320.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 80.0,
|
|
|
|
|
"remaining_quantity": 0.0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000006",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000004",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000001",
|
|
|
|
|
"product_name": "Harina de Trigo T55",
|
|
|
|
|
"product_code": "HAR-T55-001",
|
|
|
|
|
"ordered_quantity": 1000.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
2025-12-14 11:58:14 +01:00
|
|
|
"unit_price": 0.8,
|
|
|
|
|
"line_total": 800.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 0.0,
|
|
|
|
|
"remaining_quantity": 1000.0,
|
|
|
|
|
"notes": "URGENTE - Stock crítico"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000007",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000004",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000011",
|
|
|
|
|
"product_name": "Levadura Fresca",
|
|
|
|
|
"product_code": "LEV-FRESC-001",
|
|
|
|
|
"ordered_quantity": 50.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
2025-12-14 11:58:14 +01:00
|
|
|
"unit_price": 8.0,
|
|
|
|
|
"line_total": 400.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 0.0,
|
|
|
|
|
"remaining_quantity": 50.0,
|
|
|
|
|
"notes": "Stock agotado - prioridad máxima"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000008",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000006",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000011",
|
|
|
|
|
"product_name": "Mantequilla sin Sal 82% MG",
|
|
|
|
|
"product_code": "MANT-001",
|
|
|
|
|
"ordered_quantity": 30.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
2025-12-14 11:58:14 +01:00
|
|
|
"unit_price": 6.5,
|
|
|
|
|
"line_total": 195.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 0.0,
|
|
|
|
|
"remaining_quantity": 30.0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000009",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000007",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000041",
|
|
|
|
|
"product_name": "Chocolate Negro 70% Cacao",
|
|
|
|
|
"product_code": "CHO-NEG-001",
|
|
|
|
|
"ordered_quantity": 20.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
2025-12-14 11:58:14 +01:00
|
|
|
"unit_price": 15.5,
|
|
|
|
|
"line_total": 310.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 20.0,
|
|
|
|
|
"remaining_quantity": 0.0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000010",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000007",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000042",
|
|
|
|
|
"product_name": "Almendras Laminadas",
|
|
|
|
|
"product_code": "ALM-LAM-001",
|
|
|
|
|
"ordered_quantity": 15.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
2025-12-14 11:58:14 +01:00
|
|
|
"unit_price": 8.9,
|
|
|
|
|
"line_total": 133.5,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 15.0,
|
|
|
|
|
"remaining_quantity": 0.0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "51000000-0000-0000-0000-000000000011",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"purchase_order_id": "50000000-0000-0000-0000-000000000007",
|
|
|
|
|
"inventory_product_id": "10000000-0000-0000-0000-000000000043",
|
|
|
|
|
"product_name": "Pasas de Corinto",
|
|
|
|
|
"product_code": "PAS-COR-001",
|
|
|
|
|
"ordered_quantity": 10.0,
|
|
|
|
|
"unit_of_measure": "kilograms",
|
2025-12-14 11:58:14 +01:00
|
|
|
"unit_price": 4.5,
|
|
|
|
|
"line_total": 45.0,
|
2025-12-13 23:57:54 +01:00
|
|
|
"received_quantity": 10.0,
|
|
|
|
|
"remaining_quantity": 0.0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|