Skip to main content
Solved

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

  • April 20, 2022
  • 2 replies
  • 206 views

Forum|alt.badge.img+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

Best answer by Ivan

This issue was solved in this case

 

2 replies

Forum|alt.badge.img+2
  • Author
  • Varsity I
  • Answer
  • July 8, 2022

This issue was solved in this case

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • July 8, 2022

Thank you for sharing the solution @Ivan !