When release payment and application , i want to a field from document apply to field customer ref in application history. Could you guide me how to do it ?
When release payment and application , i want to a field from document apply to field customer ref in application history. Could you guide me how to do it ?
Hope this helps !!
I try with this but it cannot solve
#region ReleaseDocProc
public delegate List<ARRegister> ReleaseDocProcDelegate(JournalEntry je, ARRegister ardoc, List<Batch> pmBatchList, ARDocumentRelease.ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete);
[PXOverride]
public List<ARRegister> ReleaseDocProc(JournalEntry je, ARRegister ardoc, List<Batch> pmBatchList, ARDocumentRelease.ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete, ReleaseDocProcDelegate del)
{
onreleasecomplete += OnReleaseComplete;
return del(je, ardoc, pmBatchList, onreleasecomplete);
}
private void OnReleaseComplete(ARRegister ardoc)
{
ARRegisterExt41 aRRegisterExt41 = PXCache<ARRegister>.GetExtension<ARRegisterExt41>(ardoc);
ARTranPost aRTranPost = SelectFrom<ARTranPost>.Where<ARTranPost.refNbr.IsEqual<@P.AsString>>.View.Select(this.Base, ardoc.RefNbr);
PXCache<ARTranPost>.GetExtension<ARTranPostExt>(aRTranPost).UsrCustomerRef = aRRegisterExt41.UsrInvoiceExtRefNbr;
Base.Actions.PressSave();
}
#endregion
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.