article
Order planner wrote quantities nobody could order, then patched them
The cart used to hold raw per-store requests and fix the supplier total in a later pass. I put a strict checker at the gates first, then rewrote the planner to hand out only legal case pieces, which means a small store can now end up with nothing.
Read more 4m read