Hi all,
I would like to make a summary on test report of gen. journal, to have a grouped total for every vendor, customer and bank. But when I try to add a new key in gen. journal line table, sort using this key, add a groupfooter section for gen. journal line, the test report will show warnings as the documents are not balanced out due to the re-ordering of the journal lines.
Can anyone suggest another way to achieve this? Thanks in advance.
0
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
First of all, in table 81 Gen. Journal Line, I added a new key:
Journal Template Name,Journal Batch Name,Account Type,Account No.
Then I create a report with Data Item Gen. Journal Line
DataItemTableView: SORTING(Journal Template Name,Journal Batch Name,Account Type,Account No.) ORDER(Ascending)
TotalFields: Amount (LCY)
GroupTotalFields: Journal Template Name,Journal Batch Name,Account Type,Account No.
I show only Journal Template Name, Journal Batch Name, Account Type, Account No. and Amount (LCY) in the group footer. Here is the report looks like
The circled parts are the sum of the above lines. This is the part that I cannot explain and if someone can solve my question. Why the lines with same account type will group once more time, and for bank account, a few times.
Hope if anyone knows the answer can give a hand. I really get confused to this. Thank you.
You are going to print this from journal so it will print one batch only.
How many group footer do you have?
On presection of each groupfooter you need to put code
CurrReport.showoutput(GroupfieldCausedBy = FieldNo("Account type");
and
CurrReport.showoutput(GroupfieldCausedBy = FieldNo("Account No.");
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n