Hello,
I have a crystal reports 10.0 report that displays all the transactions from the general ledger for a given day or a range of days for a given account or a range of accounts.
For example, if the input parameter values for start date and end date are 01/06/2009 and 01/07/2009 then it displays all the trasactions that hit the ledger for that day for the accounts that are specified. The users could input just one account or a range of accounts.
The Crystal Report has 3 groups - account number, account description and calendar accounting period (it will be 2009-01-31 for the input dates above)
I have a running total displayed on the report that will add the monthly beginning balance to the amount posted for the input dates and accounts.
For example if the monthly beginning balance is 100 and the amounts posted for 1/6 and 1/7 are as follows:
20, 30, 40, 50, 100
then the report displays this:
Beg Balance: 100
Amounts for 01/06:20 Running Balance: 120
30 150
40 190
50 240
Amounts for 01/07:100 340
But this is incorrect because there could have been transactions posted from 01/01 - 01/05 which is not included in the running total.
I am using 2 formulae to calculate the running total
@balance
WhilePrintingRecords;
numbervar balance;
balance := balance + {AMOUNT}
@newbalance
{@Balance} + {MTD_BEG_BALANCE}
Any help will be appreciated.
Thanks.
I have a crystal reports 10.0 report that displays all the transactions from the general ledger for a given day or a range of days for a given account or a range of accounts.
For example, if the input parameter values for start date and end date are 01/06/2009 and 01/07/2009 then it displays all the trasactions that hit the ledger for that day for the accounts that are specified. The users could input just one account or a range of accounts.
The Crystal Report has 3 groups - account number, account description and calendar accounting period (it will be 2009-01-31 for the input dates above)
I have a running total displayed on the report that will add the monthly beginning balance to the amount posted for the input dates and accounts.
For example if the monthly beginning balance is 100 and the amounts posted for 1/6 and 1/7 are as follows:
20, 30, 40, 50, 100
then the report displays this:
Beg Balance: 100
Amounts for 01/06:20 Running Balance: 120
30 150
40 190
50 240
Amounts for 01/07:100 340
But this is incorrect because there could have been transactions posted from 01/01 - 01/05 which is not included in the running total.
I am using 2 formulae to calculate the running total
@balance
WhilePrintingRecords;
numbervar balance;
balance := balance + {AMOUNT}
@newbalance
{@Balance} + {MTD_BEG_BALANCE}
Any help will be appreciated.
Thanks.