QACS Inventory Management
Test Cases
- Test 1: Sale ID: 1001, Item ID: 1, Quantity: 2 (should succeed)
- Test 2: Sale ID: 1002, Item ID: 2, Quantity: 100 (should fail - insufficient inventory)
- Test 3: Sale ID: 1003, Item ID: 3, Quantity: 45 (should succeed with reorder warning)
- Test 4: Sale ID: 1004, Multiple Items:
- Item ID: 1, Quantity: 5
- Item ID: 2, Quantity: 10
(should process both items in one transaction)