Hello,
How do I override the Capture CC action on the payments and applications screen? I pretty much want to run the basemethod in the override and once basemethod is completed, update a custom field.
I tried below but it isn’t working as expected.
public class BMEP_ARPaymentEntry_PaymentTransactionExt : PXGraphExtension<ARPaymentEntryPaymentTransaction, ARPaymentEntry>
{
public static bool IsActive() => true;
public override void Initialize() => base.Initialize();
public delegate IEnumerable CaptureCCPaymentDelegate(PXAdapter adapter);
PXOverride]
public virtual IEnumerable CaptureCCPayment(PXAdapter adapter, CaptureCCPaymentDelegate baseMethod)
{
baseMethod.Invoke(adapter);
//custom logic
return adapter.Get();
}
}
Thank you for your help!