Main > Reference Manual > Unit tests > Test Demand Policy
The test verifies the demand policies.
The supply situation is such that half of the demand can be met in time, and half of it late:
- Demand: 20 on due date 5 Jan
- Supply: 10 available as inventory, and 10 arriving on 10 Jan
The demand policy controls how the demand is allowed to be planned in such a constrained situation:
- Case A:
The default policy is to allow demands to be planned without any limits on the timing and quantity of the deliveries.
Result: Delivery of 10 units on 5 Jan and a second delivery on 10 Jan. - Case B:
No lateness is allowed.
Result: A delivery of 10 units on 5 Jan. - Case C:
Lateness is allowed, but we only accept a delivery for the full requested quantity.
Result: A delivery of 20 units on 10 Jan. - Case D:
No lateness is allowed, and we also only accept a delivery for the full requested quantity.
Result: No delivery planned. - Case E:
The maximum allowed delivery date is jan 7, without any restriction on the delivered quantity.
Result: A delivery of 10 units on 5 Jan - Case F:
The minimum quantity shipped is 11, without any restriction on the delivery date.
In this case the onhand on jan 5 is increased to 15.
Result: A delivery of 20 units on 10 Jan