Just a heads up. It looks like there is a bug in are version of T&E where it suddendly moves forward by an entire year when calculating next day. Lawson has verified this bug and we are hoping to get a fix from them in the next or so. The effect of this bug on are rules is that the year end timecards may not look at the entire time card. The line where the bug show up is
dtBeginDate = System.Date.add(dtBeginDate, "d", 1);
If you print the output of this line it looks like
...
Date Add is 2008-12-27T00:00:00 Date Add is 2008-12-28T00:00:00 Date Add is 2008-12-29T00:00:00 Date Add is 2009-12-29T00:00:00