Skip to main content
Answer

Filtering the AR Aged report

  • February 21, 2022
  • 3 replies
  • 384 views

Forum|alt.badge.img

We would like to get a version of the AR aged report for Customers who have an invoice outstanding over 90 days (age03), and then we want to show all invoices for that customer.  If they do not have an invoice over 90 days old we don’t want them on the report.

 

I thought that there would have to be a way to filter the report using the AgeTot03 variable (<>0) then print but I am not having any success.

Any ideas?

Best answer by lauraj46

Hi @mcoman ,

I don’t believe that you can use the calculated variable results in the report schema filters because the values have not been computed yet.  

One idea would be to add the critieria $AgeTot03>0 on the VisibleExpr of the sections that you want to hide.  You can use the ProcessOrder on variables and sections to control when they are evaluated. 

Set the Process order for the sections you want to hide = WhilePrint. 

The default setting for the variables is that they are calculated WhileRead. 

This should ensure that the $AgeTot03 value is calculated before it is evaluated in the visibility expression.  I tested this and it seemed to work.

Another thought would be instead of a report, to make this a dynamic screen.  In that case you could base it off of the AR-CustomerDetails generic inquiry, which is part of the AR Clerk dashboard in the SalesDemo dashboard customization package.  With a generic inquiry you can apply a filter to the customer totals as is the case on that dashboard.

Hope this helps!

Laura

3 replies

lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • Answer
  • February 21, 2022

Hi @mcoman ,

I don’t believe that you can use the calculated variable results in the report schema filters because the values have not been computed yet.  

One idea would be to add the critieria $AgeTot03>0 on the VisibleExpr of the sections that you want to hide.  You can use the ProcessOrder on variables and sections to control when they are evaluated. 

Set the Process order for the sections you want to hide = WhilePrint. 

The default setting for the variables is that they are calculated WhileRead. 

This should ensure that the $AgeTot03 value is calculated before it is evaluated in the visibility expression.  I tested this and it seemed to work.

Another thought would be instead of a report, to make this a dynamic screen.  In that case you could base it off of the AR-CustomerDetails generic inquiry, which is part of the AR Clerk dashboard in the SalesDemo dashboard customization package.  With a generic inquiry you can apply a filter to the customer totals as is the case on that dashboard.

Hope this helps!

Laura


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • February 22, 2022

Thanks Laura.  


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • February 27, 2022

I am thinking the customer is the criteria I need to add your formula to, but I am where I would add it.

 

=[@Format]<>'S' AND ($PrintConsolidated <> 1 OR ($PrintConsolidated = 1 AND [CustomerMaster.ParentBAccountID] <> NULL)