Give reusable packaging its own ledger
Synthetic wholesaler issues ten totes with a completed goods delivery. Seven return: five pass the supplied cleaning check and two await cleaning. Three remain with the customer. The local pool requires returned and ready states separately; no deposit, charge or liability amount is supplied.
| Constraint | Required record | Example decision rule |
|---|---|---|
| Issue and return | Customer loan + issued/returned quantities | 10 issued − 7 returned = 3 out |
| Reuse state | Returned clean versus cleaning-pending | 5 ready; 2 not ready |
| Goods closure | Goods order and container loan separate | Goods complete does not close loan |
Test return completion and reuse separately
| Case | Input | Expected decision |
|---|---|---|
| Current pool | 7 returned; 5 clean | Loan open 3; ready 5 |
| All 10 back, only 8 clean | 2 cleaning-pending | Loan closed; reuse still partly pending |
- Record tote issue with customer
- Record actual return quantity
- Classify returned condition
- Close loan and reuse tasks independently
A planned collection does not count as returned containers; use actual handback evidence.
The final three arrive and all pass cleaning. What is outstanding and ready?
Show the worked answer
Zero outstanding and eight ready: five earlier ready plus three new. The two cleaning-pending totes remain not ready.
Require the demo to close the goods order while the tote loan stays open, then close the loan without falsely clearing cleaning.