If your staff normally work on a day, that the public holiday falls on, but you give them the day off this must be recorded use the allowance code PHT (Public Holiday Taken) the date of the holiday needs to be recorded as well see the Pay Calculation part. If you loose this allowance code it should be setup as below.