Skip to main content
Answer

Days invoice outstanding

  • March 21, 2023
  • 5 replies
  • 190 views

Forum|alt.badge.img

We are trying to get the number of days an invoice is outstanding.  I am trying to use  =(([ARInvoice.DRSchedCntr]) - Today()) to get the numbers of days, but I get an error.  What would be a better formula?

Best answer by Robert Sternberg

Have you tried using DateDiff().  You could try:

=CDec( DateDiff( 'd', [ARInvoice.DueDate], Today()) )

 

5 replies

BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • March 21, 2023

Hi @MComan62! You could use something like DateDiff() to get the difference between these two dates.

=DateDiff(‘d’, Today(), [ARInvoice.DRSchedCntr])

Have you already tried this?


Robert Sternberg
Captain II
Forum|alt.badge.img+7

Have you tried using DateDiff().  You could try:

=CDec( DateDiff( 'd', [ARInvoice.DueDate], Today()) )

 


Forum|alt.badge.img
  • Author
  • Freshman I
  • March 21, 2023

Robert, thank you.  I had tried DateDiff with no success.  I gotta learn all these syntax someday.


  • May 20, 2025

Can someone assist me with adding a style to this row so that if an invoice is past due it shows up in a color on the report?

Thank you.


BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • May 20, 2025

@thoyt76 I would recommend to make a new post so we can answer it there. This topic is not about styles, so it could be beneficial to have a separate post to address this