I’m trying to override the GetRequiredPrepaymentEnabled method on the CreatePaymentExt graph extension.
I’ve multiple methods, but have not been able to get it to work so far.
Heres a screenshot showing ,my latest attempt.
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/8fae4b21-2f00-4922-8b0e-080f4d830527.png)
I’m trying to override the GetRequiredPrepaymentEnabled method on the CreatePaymentExt graph extension.
I’ve multiple methods, but have not been able to get it to work so far.
Heres a screenshot showing ,my latest attempt.
[PXProtectedAccess()]
protected abstract bool GetRequiredPrepaymentEnabled(SOOrder order);
public delegate bool GetRequiredPrepaymentEnabledDelegate(SOOrder order);
[PXOverride]
public virtual bool GetRequiredPrepaymentEnabled(SOOrder order, GetRequiredPrepaymentEnabledDelegate baseMethod)
{
// Do some stuff
bool bm = baseMethod?.Invoke(order); // Do not call the base method if you do not need it
// Do more stuff and return the result
}
aaghaei, that worked.
Thanks for your help.
[PXProtectedAccess()]
protected abstract bool GetRequiredPrepaymentEnabled(SOOrder order);
public delegate bool GetRequiredPrepaymentEnabledDelegate(SOOrder order);
[PXOverride]
public virtual bool GetRequiredPrepaymentEnabled(SOOrder order, GetRequiredPrepaymentEnabledDelegate baseMethod)
{
// Do some stuff
bool bm = baseMethod?.Invoke(order); // Do not call the base method if you do not need it
// Do more stuff and return the result
}
I’ve tried adding the extension methods to my SOOrder DAC extension, but I have not been able to get it to call my customized methods. Any ideas?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.