I am trying to execute code to check if a customer qualifies for our reward program. It needs to run when the order is removed from hold but after the SOOrder.OrderNbr is assigned. Right now the value is <NEW> when I write the reward record to my custom table.
public delegate IEnumerable ReleaseFromHoldDelegate(PXAdapter adapter);
PXOverride()]
public IEnumerable ReleaseFromHold(PXAdapter adapter, ReleaseFromHoldDelegate BaseMethod)
{
BaseMethod(adapter);
SOOrder row = Base.Document.Current;
if (row != null)
{
Rewards(row);
}
return adapter.Get();
}
Thank-you