✓ Production Formula Verification Test Suite

📋 Test Case 1: Example from Requirements (Plan=1820, Produced=1255, Accepted=1255)

Correct Formulas:
NC Qty = Produced Qty − Accepted Qty
Production Efficiency (%) = (Produced Qty / Plan Qty) × 100
NC (%) = (NC Qty / Produced Qty) × 100
-
Expected: 0
-
Expected: 68.96%
-
Expected: 0%

📋 Test Case 2: Overproduction (Plan=100, Produced=120, Accepted=120)

-
Expected: 0
-
Expected: 120% (Over Target - BLUE)
-
Expected: 0%

📋 Test Case 3: With NC (Defects) (Plan=500, Produced=400, Accepted=380)

-
Expected: 20 (400-380)
-
Expected: 80% (GREEN)
-
Expected: 5% (20/400)

📋 Test Case 4: Low Efficiency (Plan=1000, Produced=500, Accepted=450)

-
Expected: 50 (500-450)
-
Expected: 50% (RED - Critical)
-
Expected: 10% (50/500)