# Stock Cover and Reorder Planner Local source edition 1.0.0. Turn inventory and recent unit sales into days of cover, lead-time warnings and a replenishment list sorted by stockout risk. ## Run locally Extract the complete ZIP. Use Python 3.12 from a terminal in the extracted directory. The tool uses the Python standard library. python run.py example.json results Use a new output folder for each run. Start with example.json and replace its synthetic values with your own data. Preserve field names, types and units. Files and reports are processed on your computer. ## Inputs Supply windowDays (1–366) and up to 1000 items with unique sku, availableUnits, netUnitsSold in that same window, supplier leadDays and bufferDays. Use nonnegative whole units, available stock after reservations, and completed sales net of returns. Use a consistent location and period; exclude unreceived purchase orders. ## Results COVER.csv shows every SKU. REORDER.csv ranks only shortages by shortest remaining cover. The target is recent daily sales times lead plus buffer days, rounded up once. A zero-sales SKU has no measurable days of cover. This steady-demand estimate excludes seasonality and incoming stock. The results folder includes summary.json and the output files produced by this input. The sample produces: COVER.csv, REORDER.csv. ## Español · Planificador de existencias y reposición Calcula días de cobertura y prioriza las reposiciones según ventas, existencias y plazos de entrega. Extrae el ZIP completo y abre una terminal en esa carpeta con Python 3.12. El programa usa la biblioteca estándar de Python. Ejecuta: python run.py example.json resultados Copia example.json para preparar tus datos. Conserva los nombres y tipos de los campos, usa una carpeta de salida nueva y consulta summary.json junto con los archivos generados. La descripción detallada de los campos está en inglés. The included LICENSE covers use and modification for your own personal and commercial projects. This edition includes its source and can run locally after setup.