Hello folks, my first post so please be gentle! Ive seen the wealth of info you have to give, unforutnatly I couldnt seem to find anything I could relate to my problem.
I am trying to generate a summary report on an our order book, grouping figures into date ranges. While this would be great it it were done in normal months, my manager would like it in Financial dates.
Now, I thought of 2 ways of doing this. In our database the info is stored in a table called LedgerPeriod. Unfortuantly I cant think of any way to get it out, as its not a direct link you can create to my main table {SALESLINE.CONFIRMEDDLV}. Plus in that table they have a StartPeriod and EndPeriod Date colum.. I would use todays currentdate, and then try and work out which period it was in for "This Month", then this period + 1 for "next month" etc etc.
The other way i though if I couldnt do this is to hard code the financial period dates for this month. Ive gone about this as:
BeforeReadingRecords;
Global DateVar Array FinancialPeriod := [
Date (2006,01,01),
Date (2006,01,30),
Date (2006,02,27),
Date (2006,04,03),
Date (2006,05,01),
Date (2006,05,29),
Date (2006,07,03),
Date (2006,07,31),
Date (2006,08,28),
Date (2006,10,02),
Date (2006,10,30),
Date (2006,11,27),
Date (2006,12,31)
];
These are the Start dates for that period, the next period begins at the next date...
Now my problem, completely out of my depth on what to do next. This is the most complicated report ive created so far and im not sure where to put this code or how to use it to get my date groups.
Please can anyone give me suggestions. Im using Crystal Reports XI.
I am trying to generate a summary report on an our order book, grouping figures into date ranges. While this would be great it it were done in normal months, my manager would like it in Financial dates.
Now, I thought of 2 ways of doing this. In our database the info is stored in a table called LedgerPeriod. Unfortuantly I cant think of any way to get it out, as its not a direct link you can create to my main table {SALESLINE.CONFIRMEDDLV}. Plus in that table they have a StartPeriod and EndPeriod Date colum.. I would use todays currentdate, and then try and work out which period it was in for "This Month", then this period + 1 for "next month" etc etc.
The other way i though if I couldnt do this is to hard code the financial period dates for this month. Ive gone about this as:
BeforeReadingRecords;
Global DateVar Array FinancialPeriod := [
Date (2006,01,01),
Date (2006,01,30),
Date (2006,02,27),
Date (2006,04,03),
Date (2006,05,01),
Date (2006,05,29),
Date (2006,07,03),
Date (2006,07,31),
Date (2006,08,28),
Date (2006,10,02),
Date (2006,10,30),
Date (2006,11,27),
Date (2006,12,31)
];
These are the Start dates for that period, the next period begins at the next date...
Now my problem, completely out of my depth on what to do next. This is the most complicated report ive created so far and im not sure where to put this code or how to use it to get my date groups.
Please can anyone give me suggestions. Im using Crystal Reports XI.