Re: My invoices are changing!
Hi Carol,
I had what I think is a similar issue with an invoice application I created for a client early last year.
Things were changing and I couldn't put my finger on the cause of it.
After observing through the default browse of both header and detail table I found that records were changed and phantom records existed in the detail table. After some time and building frustration I decided to take following steps.
1. Limit the invoice form to only allowed to create new invoices, no going back to previous invoices!
2. Observe what client was doing when creating a new invoice.
3. As I needed to check the invoices produced, I created a report of all invoices with header and detail lines and made calculations for the appropriate totals. As the invoice total is stored in the header record, the calculated invoice total on the report (total of all detail records) can be compared against the invoice total in the header and the differences are indicated on the report.
4. Through a report menu the client could view/check previously created invoices and there are different forms that provide details about previous invoices too.
In the end I found out that under rare circumstances a phantom record could be created in the detail table. That sort of messed up the indexes I think. I created an operation to check for and remove phantom records.
This operation is running when a new invoice is saved.
Since then the client never had a single problem while he is creating invoices daily. I have never been able to fully explain the differences indicated on the report but that didn't bother me, both the client and I were convinced that the problem was solved.
I am just trying to provide an alternative way of looking at the issue at hand, not sure it works for you.
Regards,
Hi Carol,
I had what I think is a similar issue with an invoice application I created for a client early last year.
Things were changing and I couldn't put my finger on the cause of it.
After observing through the default browse of both header and detail table I found that records were changed and phantom records existed in the detail table. After some time and building frustration I decided to take following steps.
1. Limit the invoice form to only allowed to create new invoices, no going back to previous invoices!
2. Observe what client was doing when creating a new invoice.
3. As I needed to check the invoices produced, I created a report of all invoices with header and detail lines and made calculations for the appropriate totals. As the invoice total is stored in the header record, the calculated invoice total on the report (total of all detail records) can be compared against the invoice total in the header and the differences are indicated on the report.
4. Through a report menu the client could view/check previously created invoices and there are different forms that provide details about previous invoices too.
In the end I found out that under rare circumstances a phantom record could be created in the detail table. That sort of messed up the indexes I think. I created an operation to check for and remove phantom records.
This operation is running when a new invoice is saved.
Since then the client never had a single problem while he is creating invoices daily. I have never been able to fully explain the differences indicated on the report but that didn't bother me, both the client and I were convinced that the problem was solved.
I am just trying to provide an alternative way of looking at the issue at hand, not sure it works for you.
Regards,
Comment