I am using Crystal 8.5
Hi folks,
I am trying to come up with an easy to use formula to compute my Open Balance field.
My client needs to see the details of Invoice Payment history.
The table below shows the detail transaction of an Invoice# 112234, ( Amt= 30,000) that was paid
on three separate installmments. On each detail line on my report, I want to calculate the Open Balance.
The Invoices are grouped together. (GH1 and GF1 are suppressed. I use the Detail Lines.)
The example table shows how i want the report to look like
First Payment (Inv_Amt - Amt_paid) = Open_balance
Second Payment previous(Open_Balance - Amt_paid) = Open_Balance
Third Payment previous(Open_Balance - Amt_paid) = Open_Balance.
I tried using the Previous() function, but its picking up the previous Balance even when my Invoice# changes. Is there a better approach to calculating my Open_Balances?
Thanks in adavance.
Invoice# Inv_Amt Amt_paid Paid_Date Open_Balance
-------- ------- --------- --------- --------
112234 30,000 12,000 8/4/04 18,000
112234 30,000 10,000 8/6/04 8,000
112234 30,000 8,000 8/7/02 0.0
---
923456 15,000 15,000 8/2/04 0.0
Hi folks,
I am trying to come up with an easy to use formula to compute my Open Balance field.
My client needs to see the details of Invoice Payment history.
The table below shows the detail transaction of an Invoice# 112234, ( Amt= 30,000) that was paid
on three separate installmments. On each detail line on my report, I want to calculate the Open Balance.
The Invoices are grouped together. (GH1 and GF1 are suppressed. I use the Detail Lines.)
The example table shows how i want the report to look like
First Payment (Inv_Amt - Amt_paid) = Open_balance
Second Payment previous(Open_Balance - Amt_paid) = Open_Balance
Third Payment previous(Open_Balance - Amt_paid) = Open_Balance.
I tried using the Previous() function, but its picking up the previous Balance even when my Invoice# changes. Is there a better approach to calculating my Open_Balances?
Thanks in adavance.
Invoice# Inv_Amt Amt_paid Paid_Date Open_Balance
-------- ------- --------- --------- --------
112234 30,000 12,000 8/4/04 18,000
112234 30,000 10,000 8/6/04 8,000
112234 30,000 8,000 8/7/02 0.0
---
923456 15,000 15,000 8/2/04 0.0