Hi
I am trying to sum customers total balances by Posting Group. Here is a code i wrote but it not working. can someone help me with this.
Code:
IF Customer."Customer Posting Group" = 'BAK' THEN BEGIN
IF Customer."Monthly Install" <> 0 THEN BEGIN
//BAKTotalCustBal := "Detailed Cust. Ledg. Entry"."Amount (LCY)";
BAKCustBal1 := "Cust. Ledger Entry". Amount;
BAKArreasVar:= -Customer."Monthly Install" - "Cust. Ledger Entry".Amount;
END;
END;
BAKArreasVarTotal:=ArreasVarTotal+BAKArreasVar;
BAKTotCustBal1 += BAKCustBal1;
END;
I need it like this
BAK
20000 i.e the total arrears for all the customers with Posting group of BAK
BRDAL
48090
BTU......................32090 ans so on
I to create a report the display the information as above.
Can somone help me Please.
Thanks
0
Comments
http://savatage99.googlepages.com/50038 ... yGroup.txt
http://www.BiloBeauty.com
http://www.autismspeaks.org
How can i do this?
Thanks
Savatage thanks for the sample report. It lacks the arrear bit of it and the layout is not according to what i suggested above. can you modify it to suit my description please.
Thanks
if you want to change the look of the report the view the sections and tighten it up.
Look a the code behind the sections and the dataitems to see how the grouping is taking place.
That's the best that I can do since I'm unfamiliar with tables and output needed.
http://www.BiloBeauty.com
http://www.autismspeaks.org
Can someone help me with this problem please.
I tried to modify savatage's sample report bit i can't get it like the way i suggested.
I want the balances and arrears to be displayed in one report for all the customer posting groups. Can someone help me with this.
For the arrears there is a field created for monthly installment and every months customers has to pay the monthly installment amount. If anyone defaults the amount becomes an arrears and if the customer pays less than the monthly installment, the difference becomes an arrears.
can some help me please!!!!!!!!!!!!!!!
Thanks
Thanks
Let me first ask: Do you know how to keep track of totals, and how to group, and how to display them in a report? So if I would ask you to create a simple report from the customer ledger, grouping the records by customer number, and totalling the Amount field for each customer, would you know how to do that?
RIS Plus, LLC
My problem is how to group by a variable called ArreasVar. This is not a field in the database, i defined it as a global variable that stores arrearsVar from: The other issue is how to get the total ArrearsVar and total balances by Posting Group. For example
Customer Posting Group Total Balance Total Arrears
TTTTT 490876 40876
BNNT 89765 21344
NB: TTTT is the posting group for customer in TTTT and it's Total Balance = 490876, Total Arrears= 40876. The same thing for BNNT.
It this explanation helpful?
Can someone help me on this Please
Thanks
RIS Plus, LLC
CurrReport.CREATETOTALS(MyVar);
MyVar must be a Decimal variable.
Also remeber that you mast do a "Cust. Ledger Entry".CALCFIELDS(Amount) before doing your calculation
Albert
to group by a variable, because i need to group by the variable
Albert, Is the GroupTotalFields with Posting Group on the Cust.Ledger Entry Dataitem property.
I quess Amount is the flowfied for the balance, How about the variable ArrearsVar? can "Cust. Ledger Entry".CALCFIELDS(ArrearsVar) be possible?
Thanks
[/code]
As Daniel says it needs to be a field in the table you can make it a calculating field on the table & make it a key.
or
Other report writers such as Crystal Reports, Jet Reports, etc lets you filter & group by anything.
http://www.BiloBeauty.com
http://www.autismspeaks.org
Thanks