Hi all, I need to create a Turnover report based on the G/L Entries amounts of one particular account only. But the problem is that the total of each month of the last 5 years are needed.
For example if the user needs to see 2009 turnover, the report will show each individual total from Jan-Dec of the last 5 years. Any hints of how to go about it? i tried a 2 dimensional array and loop within it but it is not working.
thanks a lot
0
Comments
Set the appropriate filter and then:
IF GLEntry.FIND('-') THEN
REPEAT
Month := DATE2DMY(GLEntry."Posting Date", 2);
Amount[Month] := Amount[Month] + GLEntry.Amount;
UNTIL GLEntry.NEXT = 0;
But I think, you can set the dimension to 12 and clear the variable, but this depends on the required output.
There's a standard Item Turnover report report you might want to check out.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
thanks all for your posts i did something like this and it worked, probably it's not as efficient as the other methods but it worked
regards