Ensuring proper year-end closing by checking posting types