Solved

Return from Checks and Payment item to "Open" state after being released

  • 20 April 2022
  • 2 replies
  • 130 views

Userlevel 4
Badge +2

Hi,

In this topic 

it was advised to use following code: 

                string referenceNbr = "001991";
                APPaymentEntry graph = PXGraph.CreateInstance<APPaymentEntry>();
                graph.Document.Current = graph.Document.Search<APPayment.refNbr>(referenceNbr)                             graph.APPost.Current = graph.APPost.SelectSingle();
                graph.reverseApplication.Press();

However, in reverseApplication method I get Object reference

The exception occurs in this method inside reverseApplication

I can not figure out which “e” object in upper method is null, because debug does not allow to view call stack or check objects in Watch  for Acumatica classes

Suggest please, how it can be fixed or implemented by another approach that will allow to return Item back after it was released

icon

Best answer by Ivan 8 July 2022, 19:04

View original

2 replies

Userlevel 4
Badge +2

This issue was solved in this case

 

Userlevel 7
Badge

Thank you for sharing the solution @Ivan !

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved