Summary
Totalling by account and currency
Content
Good morning Guru's
I am building a template that should display segment1, segment4, segment5 (of the ccid), entered dr, entered cr and currency. It should give me totals for each group of segment1, segment4, segment5 and currency. The script has delivered the xml by G_1 as per attached xml. So if in each G_1 the segment1, segment4, segment5 and currency is the same I want the output to give me one record totalling the columns of entered dr and entered cr.
I have started off with the following in column 1 which is segment1.
<?for-each-group:G_1;./ACCOUNT?><?sort:current-group()/ACCOUNT;'ascending';data-type='text'?><?sort:current-group()/CURRENCY;'ascending';data-type='text'?>
Refer attached template for details.
For some reason it is missing some records. It seems as if it is only picking the first record for each group of segment1, segment4, segment5 and currency?
Any help would be very much appreciated.
Thanks
Tam