File size: 5,376 Bytes
5b14a8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
  "meta": {
    "name": "FiveTech - demo ficticia",
    "as_of": "2030-07-15T10:00:00Z",
    "currency": "USD",
    "fictional": true
  },
  "suppliers": [
    {
      "id": "PROV-01",
      "name": "Textiles Sierra S.L.",
      "country": "Espa帽a",
      "contact_email": null,
      "lead_days": 4,
      "active": 1
    },
    {
      "id": "PROV-02",
      "name": "Componentes Delta Lda.",
      "country": "Portugal",
      "contact_email": null,
      "lead_days": 7,
      "active": 1
    }
  ],
  "products": [
    {
      "sku": "SKU-451",
      "name": "Tejido t茅cnico azul, rollo",
      "category": "Materia prima",
      "unit": "rollo",
      "sale_price_cents": 6800,
      "reorder_point": 20,
      "target_stock": 80,
      "active": 1
    },
    {
      "sku": "SKU-208",
      "name": "Cierre industrial, caja",
      "category": "Componente",
      "unit": "caja",
      "sale_price_cents": 4500,
      "reorder_point": 15,
      "target_stock": 50,
      "active": 1
    },
    {
      "sku": "SKU-713",
      "name": "Forro reciclado, rollo",
      "category": "Materia prima",
      "unit": "rollo",
      "sale_price_cents": 5800,
      "reorder_point": 12,
      "target_stock": 40,
      "active": 1
    }
  ],
  "supplier_products": [
    {
      "supplier_id": "PROV-01",
      "sku": "SKU-451",
      "unit_cost_cents": 3400,
      "min_order_qty": 10
    },
    {
      "supplier_id": "PROV-02",
      "sku": "SKU-208",
      "unit_cost_cents": 2500,
      "min_order_qty": 5
    },
    {
      "supplier_id": "PROV-01",
      "sku": "SKU-713",
      "unit_cost_cents": 3100,
      "min_order_qty": 5
    }
  ],
  "inventory": [
    {
      "sku": "SKU-451",
      "on_hand": 18,
      "reserved": 12,
      "updated_at": "2030-07-15T09:00:00Z"
    },
    {
      "sku": "SKU-208",
      "on_hand": 36,
      "reserved": 5,
      "updated_at": "2030-07-15T09:00:00Z"
    },
    {
      "sku": "SKU-713",
      "on_hand": 26,
      "reserved": 2,
      "updated_at": "2030-07-15T09:00:00Z"
    }
  ],
  "sales_orders": [
    {
      "id": "PED-1001",
      "customer_name": "Distribuciones Norte S.L.",
      "region": "Espa帽a",
      "placed_at": "2030-07-14T11:15:00Z",
      "status": "confirmado"
    },
    {
      "id": "PED-1002",
      "customer_name": "Grupo Andino S.A.",
      "region": "LATAM",
      "placed_at": "2030-07-15T08:20:00Z",
      "status": "pendiente"
    }
  ],
  "sales_order_lines": [
    {
      "order_id": "PED-1001",
      "line_no": 1,
      "sku": "SKU-451",
      "quantity": 12,
      "unit_price_cents": 6800
    },
    {
      "order_id": "PED-1001",
      "line_no": 2,
      "sku": "SKU-208",
      "quantity": 5,
      "unit_price_cents": 4500
    },
    {
      "order_id": "PED-1002",
      "line_no": 1,
      "sku": "SKU-451",
      "quantity": 25,
      "unit_price_cents": 6800
    }
  ],
  "purchase_proposals": [
    {
      "id": "PROP-001",
      "sku": "SKU-451",
      "supplier_id": "PROV-01",
      "proposed_qty": 80,
      "unit_cost_cents": 3400,
      "currency": "USD",
      "agent_id": "ALPHA",
      "rationale": "Disponible: 6 rollos; punto de reposici贸n: 20. El pedido PED-1002 solicita 25. Reposici贸n para evitar rotura de stock.",
      "created_at": "2030-07-15T09:30:00Z"
    }
  ],
  "approval_queue": [
    {
      "proposal_id": "PROP-001",
      "status": "pendiente",
      "decided_by": null,
      "decided_at": null,
      "decision_reason": null
    }
  ],
  "stock_movements": [],
  "audit_log": [
    {
      "id": "AUD-001",
      "occurred_at": "2030-07-15T09:30:00Z",
      "actor": "ALPHA",
      "action": "propuesta_creada",
      "entity_type": "purchase_proposal",
      "entity_id": "PROP-001",
      "details_json": "{\"sku\":\"SKU-451\",\"cantidad\":80}"
    }
  ],
  "workforce": [
    {
      "id": "PER-01",
      "name": "Elena Ruiz",
      "role": "Planificaci贸n de producci贸n",
      "team": "Producci贸n",
      "capacity_hours": 40,
      "assigned_hours": 28,
      "status": "ocupado"
    },
    {
      "id": "PER-02",
      "name": "Marcos Vidal",
      "role": "Operaciones comerciales",
      "team": "Ventas",
      "capacity_hours": 40,
      "assigned_hours": 22,
      "status": "disponible"
    },
    {
      "id": "PER-03",
      "name": "Luc铆a Moreno",
      "role": "Control de calidad",
      "team": "Producci贸n",
      "capacity_hours": 40,
      "assigned_hours": 32,
      "status": "ocupado"
    }
  ],
  "production_jobs": [
    {
      "id": "FAB-001",
      "sku": "SKU-451",
      "quantity": 12,
      "stage": "preparaci贸n",
      "due_at": "2030-07-18T10:00:00Z",
      "owner": "Elena Ruiz",
      "order_id": "PED-1001"
    },
    {
      "id": "FAB-002",
      "sku": "SKU-208",
      "quantity": 5,
      "stage": "control_calidad",
      "due_at": "2030-07-19T10:00:00Z",
      "owner": "Luc铆a Moreno",
      "order_id": "PED-1001"
    }
  ],
  "planning_tasks": [
    {
      "id": "PLAN-001",
      "title": "Revisar reposici贸n SKU-451",
      "due_at": "2030-07-17T09:00:00Z",
      "team": "Suministro",
      "status": "pendiente",
      "linked_order_id": "PED-1002"
    },
    {
      "id": "PLAN-002",
      "title": "Preparar pedido PED-1001",
      "due_at": "2030-07-18T10:00:00Z",
      "team": "Producci贸n",
      "status": "en_curso",
      "linked_order_id": "PED-1001"
    }
  ]
}