Build planner
Units built against the plan, and what the next build takes from the stock. Type how many units to build and the scrap you allow for; the parts that run short come first. It does the job of the anfra Headcount Planner.
archec new my-app --kind data-app --template build-planner
archec ui preview my-app/main.arche --serve
What it shows#
- A filter bar: the last 30 days, a line.
- Four tiles: the units built and the plan attainment against
REQ-PLAN, each with the previous period; the parts the build needs and those on hand. input units "Units to build" { param UNITS }: a number typed in. A slider for the scrap allowance.- The units built and planned, week by week.
- What is left after the build, by kind of part, and the parts themselves, the shortest first, with their lead time.
The data#
data/builds.csv: a row per week and line:at,line,planned,built. Line B lost a week to a missing connector.data/bom.csv: a row per part:part,kind,supplier,per_unit,on_hand,lead_days. In a real project, the bill of materials is the onearchec parts main.arche --jsonlists, with your stock beside it.
Limits#
- What is left is per part, over the whole build. When it runs short in the build's weeks is not worked out.
- A typed number is kept for the page only. Write it in the
parameterto keep it.
The model is lib/data-apps/build-planner/main.arche, and the gallery lists
the other templates.