The code is overriding the Copy method in POReceiptEntry so that I can copy a custom field from the POLine to POReceiptLine.
public delegate void CopyDelegate(POReceiptLine aDest, POLine aSrc, Decimal aQtyAdj, Decimal aBaseQtyAdj);
[PXOverride]
public void Copy(POReceiptLine aDest, POLine aSrc, Decimal aQtyAdj, Decimal aBaseQtyAdj, CopyDelegate baseMethod)
{
baseMethod(aDest,aSrc,aQtyAdj,aBaseQtyAdj);
aDest.GetExtension<POReceiptLineExt>().UsrLineRevision = aSrc.GetExtension<POLineExt>().UsrLineRevision;
}
I don’t have this code in a Visual Studio project but I do know that it is failing to find the POReceiptLineExt.
The code compiles just fine and is working in 20.215.0025. In 22.108.0024 it compiles but crashes at runtime.
The declaration of Copy is the same as the prior version.
Any suggestions on where to look at why the code will compile but won’t run.