Attach source category to counted units
Synthetic warehouse holds five units labelled purchased source O and seven labelled consigned source C. Order W1 is explicitly allowed source O only. These source labels come from supplied records and do not decide legal title or valuation. Twelve physically present units do not satisfy a six-unit O-only request.
| Constraint | Required record | Example decision rule |
|---|---|---|
| Source identity | Item + source bucket + evidence | O5 and C7 remain separate |
| Order restriction | Allowed source O for W1 | C cannot fill O-only shortage |
| Issue history | Actual source consumed per line | Record O consumption explicitly |
Test physical total and eligible source
| Case | Input | Expected decision |
|---|---|---|
| W1 needs 4 | O5 / C7 | O-only quantity fits |
| W1 needs 6 | O5 / C7 | Short 1 eligible O unit |
- Read source records
- Read order’s allowed source
- Compare eligible quantity only
- Record source-specific issue
An unknown source must stay under review; it cannot be assigned O merely because that would fulfil the order.
Can C supply the sixth unit without a new source decision?
Show the worked answer
No. O has only five eligible units. One remains unfilled under the supplied O-only rule.
Ask for source-specific balance and issue evidence; a single twelve-unit stock display hides this requirement.