Skip to main content
Solved

Recalculate Customer Balance - ARInvoice Last Modified Date


thayden
Freshman II

Hi Everyone,

We have a nightly automation that recalculates the customer balance via the “Recalculate Customer Balance” screen. We recently created a data warehouse to pull our invoice and other data together to join with our other financial systems to create a consolidated view. We are pulling data from the ARInvoice table via the REST API and loading into the database. That all works great except for the last modified date. The biggest issue is that the “Recalculate Customer Balance” process that runs nightly is putting the date and time of that automation in the last modified fields in our ARInvoice table. Therefore I can’t pull that table and only capture new activity. 

 

Any ideas on how to get the “Recalculate Customer Balance” nightly job to stop changing the last modified date or another creative way to get last modified for ARInvoices?

 

We’re running Acumatica Cloud ERP 2021 R2 Build 21.223.0012.

 

Thanks,
Tom

Best answer by thayden

For anyone that comes across this post and interested in what I did to solve this. I left joined the ARAdjust2 table and to the ARInovice table. This allowed me to get payments. I grouped on RefNbr and got the newest created on date from the ARAdjust2 table. From there, I wrote an if statement to see if there was a payment. If no payment then i left the created on date from the invoice. 

 

=iif([ARAdjust2.createdDateTime] = null, [ARInvoice.CreatedDateTime],[ARAdjust2.createdDateTime] )

View original
Did this topic help you find an answer to your question?

2 replies

thayden
Freshman II
  • Author
  • Freshman II
  • 1 reply
  • Answer
  • August 29, 2023

For anyone that comes across this post and interested in what I did to solve this. I left joined the ARAdjust2 table and to the ARInovice table. This allowed me to get payments. I grouped on RefNbr and got the newest created on date from the ARAdjust2 table. From there, I wrote an if statement to see if there was a payment. If no payment then i left the created on date from the invoice. 

 

=iif([ARAdjust2.createdDateTime] = null, [ARInvoice.CreatedDateTime],[ARAdjust2.createdDateTime] )


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2756 replies
  • August 29, 2023

Thank you for sharing your solution with the community @thayden!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings