Another process or Violation in ARPayment creation
public class ARPaymentEntry_ARInvoiceLockViolationFix : PXGraphExtension<ARPaymentEntry>
{
[PXOverride]
public virtual void Persist(Action baseMethod)
{
var updInvoices = Base.ARInvoice_DocType_RefNbr.Cache.Updated.Cast<ARInvoice>().ToList();
baseMethod?.Invoke();
var lazyTempGraph = new Lazy<PXGraph>(() => PXGraph.CreateInstance<PXGraph>());
foreach (ARInvoice updInvoice in updInvoices)
{
PXTimeStampScope.DuplicatePersisted(lazyTempGraph.Value.Caches[typeof(ARRegister)], updInvoice, typeof(ARInvoice));
}
}
}
Comments
Post a Comment