Solved

AddAfterProcessCallback - not available after 2022 R1 upgrade

  • 11 October 2022
  • 3 replies
  • 93 views

Userlevel 3
Badge

After our recent upgrade to 2022 R1 , we can see AddAfterProcessCallback is no longer available. Any suggestions?

icon

Best answer by Shawn Burt 17 October 2022, 17:02

View original

3 replies

Userlevel 5
Badge +1

this process has changed a bit.

You need to inherit ARPaymentAfterProcessingManager which in 22R2 is in PX.Objects.Extensions.PaymentTransaction namespace.

create your overrides in this class.

   

public class MyARPaymentAfterProcessingManager : ARPaymentAfterProcessingManager
{

}

 Then you do a GraphExtenstion on ARPaymentEntryPaymentTransaction and override GetAfterProcessingManager.

    public class MyARPaymentTransactionExt : PXGraphExtension<ARPaymentEntryPaymentTransaction, ARPaymentEntry>
{
public delegate AfterProcessingManager GetAfterProcessingManagerDelegate();
[PXOverride]
public AfterProcessingManager GetAfterProcessingManager(GetAfterProcessingManagerDelegate baseMethod)
{
baseMethod?.Invoke();
return new MyARPaymentAfterProcessingManager()
{
ReleaseDoc = true,
RaisedVoidForReAuthorization = Base1.RaisedVoidForReAuthorization,
NeedSyncContext = true,
};
}

}

 

If you need more explanation please let me know.

 

 

 

Userlevel 5
Badge +1

Can I assume that this helped ? 😀

Userlevel 3
Badge

@Shawn Burt , sorry for late response. I’m specifically looking to call the below methods

this is our previous implementation

 CCPaymentEntry ccPaymentEntry = new CCPaymentEntry(aProcessingGraph);

aProcessingGraph → this is ARPaymentCCProcessing graph

  //ccPaymentEntry.AddAfterProcessCallback(new AfterTranProcDelegate(ARPaymentEntry.PaymentTransaction.UpdateARPaymentAndSetWarning));
 //ccPaymentEntry.AddAfterProcessCallback(new AfterTranProcDelegate(PaymentTransactionGraph<ARPaymentCCProcessing, ARPayment>.ReleaseARDocument));
//ccPaymentEntry.AddAfterProcessCallback(new AfterTranProcDelegate(PaymentTransactionGraph<ARPaymentCCProcessing, ARPayment>.CheckForHeldForReviewStatusAfterProc)); not sure how can we do this in the upgraded version...

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