There isn’t a standard report but this is an easy report to write. Create a dataitem for customer and filter to balance > 0. Then create a variable for the comment line and get the last line with a date. compare the date and if less than 30days then skip the customer.
Thanks for this. Kindly note that I’m not a Navision expert.
I managed to do the first part. Now my report shows company names that has a balance >0. Can you please explain on how to find the maximum date value (or the last record) from Comment Line for each Customer?
I would suggest to do another kind of filtering on the date.
CommentLine.SETFILTER(Date,’%1…’,CALCDATE(’<-30D>,TODAY));
You could also prompt the user for how long back he/she wants to check for commentlines, and then use that propmted value as parameter to the CALCDATE.
If you filter like this, you can simply do:
IF CommentLine.FINDSET(FALSE,FALSE) THEN
CurrReport.SKIP;
This works for 1 customer at a time. While giving a range of customers or the complete list of customers, I’m getting another message (given below) and report exits.