BroomerEd
Programmer
- Nov 23, 2007
- 11
I have a table of job contracts that show a start date, an end date and a cost. Invariably, these project span more that one accounting period. I have a file that includes a record for each accounting month that shows the start date, the end date and the number of days in each period.
What I can't accomplish is to allocate the proper cost to each accounting month.
eg
Job Contract 1 costs $6,200, start date is Oct 15 and end date is Dec 15. The accounting month start date for Oct is Oct 1 and the end date is Nov 1, for Nov, start date is Nov 1 and end date is Nov 29 and for Dec, start date is Nov 30 and end date is Jan 3, 09.
The report should look like this:
JC # Oct Nov Dec(Acct'g mths not calendar)
1 $1,800 $2,800 $1,600
Can anyone help?
What I can't accomplish is to allocate the proper cost to each accounting month.
eg
Job Contract 1 costs $6,200, start date is Oct 15 and end date is Dec 15. The accounting month start date for Oct is Oct 1 and the end date is Nov 1, for Nov, start date is Nov 1 and end date is Nov 29 and for Dec, start date is Nov 30 and end date is Jan 3, 09.
The report should look like this:
JC # Oct Nov Dec(Acct'g mths not calendar)
1 $1,800 $2,800 $1,600
Can anyone help?