Ok, This may have been covered elsewhere, I'd love URL's to point look at.
I have a table in the system that lets the user add payment plan information with the following info: Start_Date (date plan starts), Days_Between (days between each payment, 30 is default for 1/month), Payment (amount due each payment), TotalDue (original amount due), PlanID (unique ID for the plan), PlanDescription (something for the user to put in notes).
I have another table that tracks payments that are actually made. It stores the date of the payment, amount paid, and which payment plan the payment was made against.
I'd like to create a payment plan report. Getting the rows for payments that are made was simple enough. Order them on payment date but haven't figured out how to track the declining balance with each row.
The bigger question is what's the best way to calculate and have a row for each future payment? Right now I create a temporary table in the front end and calculate each payment, declining balance, payment date, payment number and then report on that but it seems like a lot of work? Is there a better way? I don't want to create records for each planned payment when the plan is created because the plan/term might change and I hate tracking calculated info in the database.
Thanks
I have a table in the system that lets the user add payment plan information with the following info: Start_Date (date plan starts), Days_Between (days between each payment, 30 is default for 1/month), Payment (amount due each payment), TotalDue (original amount due), PlanID (unique ID for the plan), PlanDescription (something for the user to put in notes).
I have another table that tracks payments that are actually made. It stores the date of the payment, amount paid, and which payment plan the payment was made against.
I'd like to create a payment plan report. Getting the rows for payments that are made was simple enough. Order them on payment date but haven't figured out how to track the declining balance with each row.
The bigger question is what's the best way to calculate and have a row for each future payment? Right now I create a temporary table in the front end and calculate each payment, declining balance, payment date, payment number and then report on that but it seems like a lot of work? Is there a better way? I don't want to create records for each planned payment when the plan is created because the plan/term might change and I hate tracking calculated info in the database.
Thanks