Adding Aging Bucket to custom report AX 2009

Hi,

For a custom report in AX 2009, I need to add the Aging Bucket function. I build it like the Aging Bucket on the Customer account statement report and so far it looks good, but there is one problem.
The “After…” date is always showing “12/31/2154” as the date… Does anyone have an idea why or maybe where I should look for the problem?

Found the problem myself, an if-statement in the getHeaderEnd() method was wrong :slight_smile: