Skip to main content
The Void ReleaseDocProc(PX.Objects.GL.JournalEntry, PX.Objects.IN.INRegister, ReleaseDocProcDelegate) method in the PX.Objects.IN.INReleaseProcess_Extension graph extension is marked as [PXOverride], but its signature is not compatible with the original method.

Hi @kevinheng21 ,

I think there might be a discrepancy in the parameters you've provided in the override method.

public class APReleaseProcess_Extension : PXGraphExtension<PX.Objects.AP.APReleaseProcess>
{

public delegate List<APRegister> ReleaseDocProcDelegate(JournalEntry je, APRegister doc, Boolean isPrebooking, ref List<INRegister> inDocs);
PXOverride]
public List<APRegister> ReleaseDocProc(JournalEntry je, APRegister doc, Boolean isPrebooking, ref List<INRegister> inDocs, ReleaseDocProcDelegate baseMethod)
{
var value = baseMethod(je,doc,isPrebooking,ref inDocs);
return value;
}

}

Could you please try above code and publish?

Regards,

Sweta


here is my code in INReleaseProcess_Extension, it doesn’t relate to APRegister

public delegate void ReleaseDocProcDelegate(JournalEntry je, INRegister doc);

       PXOverride]
    public void ReleaseDocProc(
      JournalEntry je,
      INRegister doc,
      INReleaseProcess_Extension.ReleaseDocProcDelegate baseMethod)
    {

…...

}

 


Hi @kevinheng21 ,

I tried it in my local instance and customization project got published successfully.

 public class INReleaseProcess_Extension : PXGraphExtension<PX.Objects.IN.INReleaseProcess>
{
#region Event Handlers
public delegate void ReleaseDocProcDelegate(JournalEntry je, INRegister doc);
PXOverride]
public void ReleaseDocProc(JournalEntry je, INRegister doc, ReleaseDocProcDelegate baseMethod)
{
baseMethod(je,doc);
}

 


Hi @kevinheng21 ,

I’ve reviewed the same in my local and am not facing any error. 

 public class INReleaseProcessExtension : PXGraphExtension<INReleaseProcess>
  {

    /PXOverride]
     public delegate void ReleaseDocProcDelegate(JournalEntry je, INRegister doc);
          public virtual void ReleaseDocProc(JournalEntry je, INRegister doc, ReleaseDocProcDelegate baseMethod)
     {
           
     }
  }

Try with the sample code and let me know if still facing the same issue.


Reply