demo seed change 7
This commit is contained in:
@@ -1467,6 +1467,287 @@
|
||||
"updated_at": "BASE_TS",
|
||||
"is_available": true,
|
||||
"is_expired": false
|
||||
},
|
||||
{
|
||||
"id": "8724f03d-dc35-440a-97a4-5cbc99fc3769",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000011",
|
||||
"current_quantity": 0,
|
||||
"reserved_quantity": 0.0,
|
||||
"available_quantity": 0,
|
||||
"storage_location": "Almacén Refrigerado - Zona B",
|
||||
"production_stage": "raw_ingredient",
|
||||
"quality_status": "expired",
|
||||
"expiration_date": "BASE_TS - 5d",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"batch_number": "MAN-SAL-EXPIRED-001",
|
||||
"created_at": "BASE_TS - 95d",
|
||||
"updated_at": "BASE_TS - 5d",
|
||||
"is_available": false,
|
||||
"is_expired": true
|
||||
},
|
||||
{
|
||||
"id": "0a863e6c-2fc3-4307-bf6a-acb3a306ac8a",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000012",
|
||||
"current_quantity": 0,
|
||||
"reserved_quantity": 0.0,
|
||||
"available_quantity": 0,
|
||||
"storage_location": "Almacén Refrigerado - Zona B",
|
||||
"production_stage": "raw_ingredient",
|
||||
"quality_status": "expired",
|
||||
"expiration_date": "BASE_TS - 3d",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"batch_number": "LEC-ENT-EXPIRED-002",
|
||||
"created_at": "BASE_TS - 10d",
|
||||
"updated_at": "BASE_TS - 3d",
|
||||
"is_available": false,
|
||||
"is_expired": true
|
||||
},
|
||||
{
|
||||
"id": "b59aff5e-6d33-4d3b-a0a8-26700850e578",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000013",
|
||||
"current_quantity": 0,
|
||||
"reserved_quantity": 0.0,
|
||||
"available_quantity": 0,
|
||||
"storage_location": "Almacén Refrigerado - Zona B",
|
||||
"production_stage": "raw_ingredient",
|
||||
"quality_status": "expired",
|
||||
"expiration_date": "BASE_TS - 8d",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"batch_number": "NAT-EXPIRED-003",
|
||||
"created_at": "BASE_TS - 32d",
|
||||
"updated_at": "BASE_TS - 8d",
|
||||
"is_available": false,
|
||||
"is_expired": true
|
||||
},
|
||||
{
|
||||
"id": "05400f11-cbca-4416-9e78-3fc1bc6bd5ad",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000021",
|
||||
"current_quantity": 0,
|
||||
"reserved_quantity": 0.0,
|
||||
"available_quantity": 0,
|
||||
"storage_location": "Almacén Refrigerado - Zona C",
|
||||
"production_stage": "raw_ingredient",
|
||||
"quality_status": "expired",
|
||||
"expiration_date": "BASE_TS - 12d",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000003",
|
||||
"batch_number": "LEV-FRE-EXPIRED-004",
|
||||
"created_at": "BASE_TS - 60d",
|
||||
"updated_at": "BASE_TS - 12d",
|
||||
"is_available": false,
|
||||
"is_expired": true
|
||||
},
|
||||
{
|
||||
"id": "d1cebc40-b960-4312-a523-3b4fc543a4fd",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000012",
|
||||
"current_quantity": 12.5,
|
||||
"reserved_quantity": 0.0,
|
||||
"available_quantity": 12.5,
|
||||
"storage_location": "Almacén Refrigerado - Zona B",
|
||||
"production_stage": "raw_ingredient",
|
||||
"quality_status": "warning",
|
||||
"expiration_date": "BASE_TS + 2d",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"batch_number": "LEC-ENT-NEAREXP-005",
|
||||
"created_at": "BASE_TS - 5d",
|
||||
"updated_at": "BASE_TS",
|
||||
"is_available": true,
|
||||
"is_expired": false
|
||||
},
|
||||
{
|
||||
"id": "d7117e9b-b6ea-4459-89b6-07737755e695",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000011",
|
||||
"current_quantity": 8.0,
|
||||
"reserved_quantity": 0.0,
|
||||
"available_quantity": 8.0,
|
||||
"storage_location": "Almacén Refrigerado - Zona B",
|
||||
"production_stage": "raw_ingredient",
|
||||
"quality_status": "warning",
|
||||
"expiration_date": "BASE_TS + 3d",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"batch_number": "MAN-NEAREXP-006",
|
||||
"created_at": "BASE_TS - 87d",
|
||||
"updated_at": "BASE_TS",
|
||||
"is_available": true,
|
||||
"is_expired": false
|
||||
}
|
||||
],
|
||||
"stock_movements": [
|
||||
{
|
||||
"id": "82b66653-665b-47f0-9d6d-e90262e825bc",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000011",
|
||||
"stock_id": "8724f03d-dc35-440a-97a4-5cbc99fc3769",
|
||||
"movement_type": "WASTE",
|
||||
"quantity": 5.5,
|
||||
"unit_cost": 6.5,
|
||||
"total_cost": 35.75,
|
||||
"quantity_before": 5.5,
|
||||
"quantity_after": 0.0,
|
||||
"reference_number": "WASTE-EXP-001",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"notes": "Mantequilla expired - 5 days past expiration date",
|
||||
"reason_code": "expired",
|
||||
"movement_date": "BASE_TS - 5d",
|
||||
"created_at": "BASE_TS - 5d",
|
||||
"created_by": "c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
|
||||
},
|
||||
{
|
||||
"id": "19b4d97f-8fe0-4374-ae47-32f2997d379f",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000012",
|
||||
"stock_id": "0a863e6c-2fc3-4307-bf6a-acb3a306ac8a",
|
||||
"movement_type": "WASTE",
|
||||
"quantity": 8.2,
|
||||
"unit_cost": 0.95,
|
||||
"total_cost": 7.79,
|
||||
"quantity_before": 8.2,
|
||||
"quantity_after": 0.0,
|
||||
"reference_number": "WASTE-EXP-002",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"notes": "Leche entera expired - perishable dairy waste",
|
||||
"reason_code": "expired",
|
||||
"movement_date": "BASE_TS - 3d",
|
||||
"created_at": "BASE_TS - 3d",
|
||||
"created_by": "c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
|
||||
},
|
||||
{
|
||||
"id": "850756c3-7242-4613-ace4-e404a9a45c7e",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000013",
|
||||
"stock_id": "b59aff5e-6d33-4d3b-a0a8-26700850e578",
|
||||
"movement_type": "WASTE",
|
||||
"quantity": 4.8,
|
||||
"unit_cost": 3.2,
|
||||
"total_cost": 15.36,
|
||||
"quantity_before": 4.8,
|
||||
"quantity_after": 0.0,
|
||||
"reference_number": "WASTE-EXP-003",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"notes": "Nata para montar expired - 8 days past expiration",
|
||||
"reason_code": "expired",
|
||||
"movement_date": "BASE_TS - 8d",
|
||||
"created_at": "BASE_TS - 8d",
|
||||
"created_by": "c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
|
||||
},
|
||||
{
|
||||
"id": "3a1ae8bc-9d6f-4a0f-a759-b0d41a114aa2",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000021",
|
||||
"stock_id": "05400f11-cbca-4416-9e78-3fc1bc6bd5ad",
|
||||
"movement_type": "WASTE",
|
||||
"quantity": 3.2,
|
||||
"unit_cost": 4.8,
|
||||
"total_cost": 15.36,
|
||||
"quantity_before": 3.2,
|
||||
"quantity_after": 0.0,
|
||||
"reference_number": "WASTE-EXP-004",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000003",
|
||||
"notes": "Levadura fresca expired - lost viability",
|
||||
"reason_code": "expired",
|
||||
"movement_date": "BASE_TS - 12d",
|
||||
"created_at": "BASE_TS - 12d",
|
||||
"created_by": "c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
|
||||
},
|
||||
{
|
||||
"id": "2278b2d4-405f-421a-a76c-ed2259d8908c",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000011",
|
||||
"stock_id": null,
|
||||
"movement_type": "WASTE",
|
||||
"quantity": 2.3,
|
||||
"unit_cost": 6.5,
|
||||
"total_cost": 14.95,
|
||||
"quantity_before": null,
|
||||
"quantity_after": null,
|
||||
"reference_number": "WASTE-DMG-001",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"notes": "Mantequilla damaged during storage - refrigeration failure",
|
||||
"reason_code": "damaged",
|
||||
"movement_date": "BASE_TS - 15d",
|
||||
"created_at": "BASE_TS - 15d",
|
||||
"created_by": "c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
|
||||
},
|
||||
{
|
||||
"id": "ab8ce4af-389f-4366-af6e-be4738e699ad",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000001",
|
||||
"stock_id": null,
|
||||
"movement_type": "WASTE",
|
||||
"quantity": 3.5,
|
||||
"unit_cost": 0.85,
|
||||
"total_cost": 2.98,
|
||||
"quantity_before": null,
|
||||
"quantity_after": null,
|
||||
"reference_number": "WASTE-DMG-002",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000001",
|
||||
"notes": "Harina contaminated - moisture damage from leak",
|
||||
"reason_code": "contaminated",
|
||||
"movement_date": "BASE_TS - 20d",
|
||||
"created_at": "BASE_TS - 20d",
|
||||
"created_by": "c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
|
||||
},
|
||||
{
|
||||
"id": "684a65bb-266b-47d9-92b0-9643a644f35c",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000012",
|
||||
"stock_id": null,
|
||||
"movement_type": "WASTE",
|
||||
"quantity": 1.8,
|
||||
"unit_cost": 0.95,
|
||||
"total_cost": 1.71,
|
||||
"quantity_before": null,
|
||||
"quantity_after": null,
|
||||
"reference_number": "WASTE-SPILL-001",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"notes": "Leche spilled during handling",
|
||||
"reason_code": "spillage",
|
||||
"movement_date": "BASE_TS - 7d",
|
||||
"created_at": "BASE_TS - 7d",
|
||||
"created_by": "c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
|
||||
},
|
||||
{
|
||||
"id": "f9064937-c568-4932-967a-90b4b03522ac",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000012",
|
||||
"stock_id": null,
|
||||
"movement_type": "WASTE",
|
||||
"quantity": 12.5,
|
||||
"unit_cost": 0.95,
|
||||
"total_cost": 11.88,
|
||||
"quantity_before": null,
|
||||
"quantity_after": null,
|
||||
"reference_number": "WASTE-EXP-HIST-001",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"notes": "Baseline period - poor inventory management",
|
||||
"reason_code": "expired",
|
||||
"movement_date": "BASE_TS - 25d",
|
||||
"created_at": "BASE_TS - 25d",
|
||||
"created_by": "c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
|
||||
},
|
||||
{
|
||||
"id": "a4ce24b4-8ccc-4eb0-a9ae-22be68e4f3a4",
|
||||
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
||||
"ingredient_id": "10000000-0000-0000-0000-000000000011",
|
||||
"stock_id": null,
|
||||
"movement_type": "WASTE",
|
||||
"quantity": 8.0,
|
||||
"unit_cost": 6.5,
|
||||
"total_cost": 52.0,
|
||||
"quantity_before": null,
|
||||
"quantity_after": null,
|
||||
"reference_number": "WASTE-EXP-HIST-002",
|
||||
"supplier_id": "40000000-0000-0000-0000-000000000002",
|
||||
"notes": "Baseline period - excess ordering before AI implementation",
|
||||
"reason_code": "expired",
|
||||
"movement_date": "BASE_TS - 28d",
|
||||
"created_at": "BASE_TS - 28d",
|
||||
"created_by": "c1a2b3c4-d5e6-47a8-b9c0-d1e2f3a4b5c6"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user