# Which orders can current stock fill? This lesson is for a small maker who builds kits from parts on one shelf. It uses a labelled synthetic snapshot. It is not customer data and not a live calculator. ## The question You have on-hand counts, a reserved quantity that must stay untouched, a one-level bill of materials, and a short list of orders with integer priorities. Before anyone packs, ask: which orders can this snapshot fill, and which parts would still be short for the rest? ## The rule this product uses Sort orders by priority, high number first. If two orders share a priority, keep the order they were listed in. Subtract reserved stock first. Then walk the list once. In partial mode, fill as many whole units as leftover stock allows. In whole-order mode, fill the order completely or skip it and keep the parts for the next order. This is a greedy walk, not a search for the globally best mix. ## What the synthetic snapshot teaches Twelve boards sit on the shelf, but two are reserved, so only ten can be used. Partial mode fills ORDER-A (six sensor kits) then two of three board-pairs, and leaves ORDER-C unfilled. Whole-order mode still fills ORDER-A, then skips ORDER-B because three board-pairs need six boards and only four remain. Skipping ORDER-B leaves parts that could build one more sensor kit, but ORDER-C asked for two, so it is skipped too. The leftover is real. A later smaller order could have taken it. This fixture has no such order. ## What this is not It is not a forecast, a purchase plan, a date schedule, a substitution engine, or physical assembly or safety guidance. Shortages are a mathematical remainder for review, not a buying instruction. Rerun from a new snapshot when stock or orders change. ## Next step Reuse this snapshot from the example zip. The $49 one-time KitClear Offline edition on Gumroad runs the same allocation on your machine with your files. This page cannot take your files.