Special leave had to exist before it could be requested, while substitute leave could depend on a future holiday shift that might later be cancelled.
Once the HOLCOUP record was defined, each type of leave needed its own generation logic.
Special leave was allocated in advance so that a person could request next month’s day off before the month began. Coupons were created in the preceding month and remained valid for two months, allowing some recovery when the planned month became impossible.
Substitute leave was more delicate. Work on a Sunday or public holiday created a right usable from the previous month through the second following month. That meant the leave could be taken before the work that justified it.
Suppose a May 3 holiday shift generated two half-day coupon records valid from April 1 through July 31. Each record stored May 3 as its allocation basis date.
If the employee later cancelled the May 3 shift for a family trip, cancelling the planned work also invalidated the coupons whose basis date was May 3.
The system could therefore grant a right early enough for real scheduling, yet roll it back safely when the future event changed.
CHAPTER 03 · PART 02 · EPISODE 6 / 9 STORIES · 35 STORIES TOTAL