FA-60108 / Inventory cost layering / Member archive
Standard cost material variances: variance direction label · case 03
Overspending is reported as favorable and savings as unfavorable.
Case contract
Input {std_price, std_qty (per good unit), good_units, scrap_units, purchases:[[qty,total_cost]], used}. The price variance is isolated at purchase: sum(total_cost - qty*std_price). Standard allowed quantity is std_qty*good_units (scrap earns no allowance). Usage variance = (used - allowed)*std_price. Labels: positive "U", negative "F", zero "-". Return {ppv, ppv_label, usage, usage_label, allowed}.
Why this case matters
Inventory valuation and cost-of-goods decisions depend on this rule.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| unfavorable price | {"allowed": 30, "ppv": 403, "ppv_label": "F", "usage": 600, "usage_label": "F"} | {"allowed": 30, "ppv": 403, "ppv_label": "U", "usage": 600, "usage_label": "U"} | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗