Files
bakery-ia/services/procurement/app
Claude 9d284cae46 refactor: Convert internal services to structured JSON reasoning
Convert pipe-separated reasoning codes to structured JSON format for:
- Safety stock calculator (statistical calculations, errors)
- Price forecaster (procurement recommendations, volatility)
- Order optimization (EOQ, tier pricing)

This enables i18n translation of internal calculation reasoning
and provides structured data for frontend AI insights display.

Benefits:
- Consistent with PO/Batch reasoning_data format
- Frontend can translate using same i18n infrastructure
- Structured parameters enable rich UI visualization
- No legacy string parsing needed

Changes:
- safety_stock_calculator.py: Replace reasoning str with reasoning_data dict
- price_forecaster.py: Convert recommendation reasoning to structured format
- optimization.py: Update EOQ and tier pricing to use reasoning_data

Part of complete i18n implementation for AI insights.
2025-11-07 19:22:02 +00:00
..
2025-11-05 13:34:56 +01:00
2025-10-30 21:08:07 +01:00
2025-11-01 21:35:03 +01:00
2025-10-31 18:57:58 +01:00
2025-10-30 21:08:07 +01:00
2025-11-05 13:34:56 +01:00