Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }