The system must block the deletion of any pay codes that have a value against them. Amongst other things, this causes the journal to be out of balance.