reversejournal(): plpgsql function to automatically post reversing journal entry