public virtual IEnumerable ReverseBatch(PXAdapter adapter) { bool isWithinContext = Base.IsWithinContext; if (isWithinContext) { GLVoucherEntryHelper.ReverseGLVoucher(Base, Base.Save, () => Base.ReverseBatch(adapter), VoucherBatch.Cache); } return(Base.ReverseBatch(adapter)); }
public virtual IEnumerable ReverseBatch(PXAdapter adapter) { bool isWithinContext = Base.IsWithinContext; if (!Base.AskUserApprovalToReverseBatch(Base.BatchModule.Current)) { return(adapter.Get()); } if (isWithinContext) { GLVoucherEntryHelper.ReverseGLVoucher(Base, Base.Save, () => Base.ReverseBatch(adapter), VoucherBatch.Cache); } return(Base.ReverseBatch(adapter)); }