Skip to main content
Question

How to override "public virtual void Reset(SourceAssign source)" method

  • November 2, 2021
  • 0 replies
  • 100 views

aaghaei
Captain II
Forum|alt.badge.img+10

I need to override a piece of Acumatica’s Approval process that wipe outs the approval log when a document is put “On hold”. Not sure why Acumatica approval engine violates internal controls and clears the approval history log. The piece of the code that prevents from approving a rejected document is in EP\Descriptor\Attributes.cs as follows:

        public virtual void Reset(SourceAssign source)
        {
            foreach (EPApproval item in this._History.SelectMulti(GetSourceNoteID(source)))
                this.Cache.Delete(item);
        }