First of all, I am not sure if this is the right place in this forum to post, so appologies if this is not the correct section.
I'm trying to design a report that would calculate interest and I cannot find a way to make it.
I will kinda walk you through my logic, please read and perhaps people here will have some good ideas, which could help me out.
-----
Database Source: I only use 1 table (it's a view actually), history of all debtors operations.
What I need to have on my report is the following:
Invoice Number
Invoice Date
Invoice Due Date
Debtor Number/Name
Amount
So far it seems simple. However in the table I use, there are both dates of the invoice and dates of payments. I know which one is which, based on the number, it's either the invoice number or the number of payment.
What I did is this, I created a mirror view (#1 vs. #0 the original one) I linked from #0 document number to the invoice number in #1 (document number contains both invoices and payments)
In Details section of the layout of my Crystal report I placed the date from both views. In that way I get all the info concerning my invoice and, at the same time in Details, all the info concerning payment/payments for this invoice (grouped by invoice #)
This is all great and works fine, but in this way I only get those invoices for which there were payments. I've also got a substantial number of invoices to be paid and which were not paid yet.
I'm wrestling with this problem for some time now and I cannot find the way to get all the invoices together with corresponding payments/partial payments.
I'm not goot at explaining things, I hope you can understand my problem. In case you have any questions, please ask.
Any ideas that might help me?
Jericho
I'm trying to design a report that would calculate interest and I cannot find a way to make it.
I will kinda walk you through my logic, please read and perhaps people here will have some good ideas, which could help me out.
-----
Database Source: I only use 1 table (it's a view actually), history of all debtors operations.
What I need to have on my report is the following:
Invoice Number
Invoice Date
Invoice Due Date
Debtor Number/Name
Amount
So far it seems simple. However in the table I use, there are both dates of the invoice and dates of payments. I know which one is which, based on the number, it's either the invoice number or the number of payment.
What I did is this, I created a mirror view (#1 vs. #0 the original one) I linked from #0 document number to the invoice number in #1 (document number contains both invoices and payments)
In Details section of the layout of my Crystal report I placed the date from both views. In that way I get all the info concerning my invoice and, at the same time in Details, all the info concerning payment/payments for this invoice (grouped by invoice #)
This is all great and works fine, but in this way I only get those invoices for which there were payments. I've also got a substantial number of invoices to be paid and which were not paid yet.
I'm wrestling with this problem for some time now and I cannot find the way to get all the invoices together with corresponding payments/partial payments.
I'm not goot at explaining things, I hope you can understand my problem. In case you have any questions, please ask.
Any ideas that might help me?
Jericho