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

Popular posts from this blog

grid row color and button color in acumatica

Dynamic dataview creation