Reorder calculation
Combines average daily usage, lead time and safety stock into a clear reorder point for each supplied item.
Day 027 / Frappe / Inventory Planning
A dependency-free Python CLI that turns sanitized stock-policy inputs into reviewable reorder suggestions without connecting to ERPNext or changing inventory.
Combines average daily usage, lead time and safety stock into a clear reorder point for each supplied item.
Subtracts current and on-order supply, honors a minimum order and rounds upward to a complete pack.
Generates deterministic text or JSON recommendations while leaving inventory, suppliers and purchase documents untouched.
Usage-and-lead-time reorder points
On-order quantity included
Minimum order and pack rounding
Bounded sanitized JSON input
No ERP or purchasing mutation
Eleven passing standard-library tests
Argparse, dataclasses, pathlib, math and JSON provide the complete dependency-free command-line workflow.
Uses a documented reorder-point formula with explicit supply, safety-stock, minimum-order and pack-size inputs.
Eleven tests cover calculations, rounding, on-order stock, validation, duplicate items, output ordering and the non-mutating notice.