Modifying the AX 2012 Customer or Vendor Aging Reports

by | Updated August 15, 2016 | Development, Dynamics AX, Reporting

I recently modified the customer aging report in AX 2012 and I can tell you the report is difficult to follow.  There are several class hierarchies and temp tables involved and it is easy to get lost in them.  While making my way through the aging puzzle, I took the notes below.  I hope you find them valuable if you are ever making modifications to the customer or vendor aging reports.  Enjoy!

In the class and method CustAgingReportDP\processReport on line 85 there is this line:

custVendBalanceList.calculateDetailsForMultipe(qr, contract.parmIncludeAmountCur());

The line above calls out to the CustBalanceList class which inherits from CustVendBalanceList.  In method calculateDetailsForMultiple in CustBalanceList on line 5 there is this line:

custVendAgingCalculateTmp = agingCalculation.process(_queryRun);

That lines calls out to the process method in the CustVendAgingCalculation class.  The process method is a driver method in which the data is collected that is later displayed in the report.  The process method is a good place to set your breakpoints.  On line 14 of the CustVendAgingCalculation\process method it collects all of the customers (or vendors) the report is going to look at.  This is the line of interest:

this.insertCustVendData(_custVendQuery);

On line 20 of CustVendAgingCalculation\process it grabs the open and closed transactions that will be displayed in the report.  If you look at the CustVendAgingCalculation\selectTransactions method you will see it has two separate calls:

this.selectClosedTransactions();

this.selectOpenTransactions();

Both the selectClosedTransactions and selectOpenTransactions methods query the CustVendTrans and CustVendTransOpen tables for data.  The methods insert what they find into a CustVendAgingProcessingTmp table.  The details for the transactions are collected in the CustVendAgingProcessingDetailsTmp table and then both the CustVendAgingProcessingTmp and CustVendAgingProcessingDetailsTmp tables are combined into a single CustVendAgingCalculatedTmp temp table in the CustVendAgingCalculation\process method.  Once everything has been pulled together, the CustVendAgingCalculatedTmp table is returned to the CustBalanceList\calculateDetailsForMultiple method.

Next in the CustBalanceList\calculateDetailsForMultiple method the insertIntoTmpAccountSum method is called.  In the insertIntoTmpAccountSum method the contents of the CustVendAgingCalculatedTmp table are inserted into a CustTmpAccountSum temp table.  At the very end of the CustBalanceList\insertIntoTmpAccountSum method the TmpAccountSum is an instance of the AccountSumMap.  The map is set equal to the CustTmpAccountSum table.  The mappings on the AccountSumMap map translate the fields in the CustTmpAccountSum table to an instance of the TmpAccountSum temp table.

The TmpAccountSum table is then used by the CustAgingReportDP\processReport method on line 90 with this call:

this.insertCustAgingReportTmp(reverseAmountsAndHeadings)

The contents of the TmpAccountSum are inserted into a CustAgingReportTmp table and this temp table is what is returned to the SSRS report design.

Related Posts

  • The following steps describe how to use a display method as a field when you have a dataset in a SRS report pointing to a query. 1.  Display methods cannot…

  • I was recently asked to add an Account Summary to the footer of a report in AX 2012, to look something like this: In my research, I came across a…

  • **Updated 11/20/2013** There are quite a few important keyboard shortcuts that can really save some time when entering data and moving around in AX 2012.  One in particular - hitting…

1 Comment

  1. archie

    Wow!! You are amazing!! Thanks a lot Maa’m.

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

september

02sep10:00 am10:30 amThe Modern Manufacturer - Cycle Count Management

02sep12:00 pm12:30 pmBest Practices for Work Order Planning and Routing for Field Service Companies

09sep10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

09sep12:00 pm12:30 pmOverview of Microsoft Promotion for NAV and GP Clients

10sep11:00 am12:00 pmConfab with Stoneridge - Livestream - Field Service Comparisons

16sep10:00 am10:30 amThe Modern Manufacturer - Product Lifecycle Management

16sep12:00 pm12:30 pmHow to Upgrade to Dynamics 365 Finance and Operations: Examining Custom Code and ISV Implications

16sep2:00 pm2:30 pmScheduling and Dispatching for the Modern Field Service Company

23sep12:00 pm1:00 pmDynamics 365 Business Central Wave 2 Release Preview - An Overview of the Most Exciting New Features Coming in October

24sep11:00 am12:00 pmConfab with Stoneridge - Livestream - The Modern Workplace: Teams, Sharepoint, Outlook, Office, and AI Integration

30sep10:00 am10:30 amThe Modern Manufacturer - Return Management

30sep12:00 pm12:30 pmEmpowering Your Field Service Technicians with a Mobile Solution

october

07oct12:00 pm1:00 pmThe Three Paths to Business Central from Dynamics GP

08oct11:00 am12:00 pmConfab with Stoneridge - Livestream - The Vision and Strategy of Microsoft Business Systems

14oct10:00 am10:30 amThe Modern Manufacturer - Complex Cost Modeling

14oct12:00 pm12:30 pmGenerating Custom Inspection or Process Forms

19octAll Day22Stoneridge Connect Fall 2020

22oct11:00 am12:00 pmConfab with Stoneridge - Livestream - Stoneridge Connect Recap

28oct10:00 am10:30 amThe Modern Manufacturer - Engineering Change Orders

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X