← Inventory & Replenishment Exceptions
Lesson 4 of 4
Order complete packs with exception priority
Choose an action and a supplier-valid quantity.
Do the work
- Resolve unknown counts and negative available before considering reorder thresholds.
- Reorder only below the point; equality means hold.
- Round the positive target gap up to a multiple of pack_size.
See the method
A 13-unit gap with pack size 6 needs 18 units.
Read every demonstration step
- A 13-unit gap with pack size 6 needs 18 units.
- A gap of 12 with pack size 6 needs exactly 12.
- In SQLite integer arithmetic, (gap + pack - 1) / pack gives the pack count.
Practice independently
Exercise 1
Flag replenishment actions
Open practice →Exercise 2Calculate complete-pack orders
Open practice →Take it further
Check that the ordered amount reaches target but removing one pack would not.