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);
}