AX 2012 Absence holidays

When I create an absence journal for a user for a number of days that includes a public holiday, the system counts the public holiday as an absence transaction. Is there any way to get an absence registration to warn, flag or book zero hours when a day is defined in the employee calendar as ‘Closed’ and not available for pickup?