public virtual IEnumerable ViewWorkBook(PXAdapter adapter)
        {
            GLVoucherBatchEntry graph = PXGraph.CreateInstance <GLVoucherBatchEntry>();

            graph.filter.Current.WorkBookID = Voucher.Current.WorkBookID;
            graph.VoucherBatches.Current    = graph.VoucherBatches.Search <GLVoucherBatch.voucherBatchNbr>(Voucher.Current.VoucherBatchNbr);
            throw new PXRedirectRequiredException(graph, "");
        }
        public virtual IEnumerable ViewVoucherBatch(PXAdapter adapter)
        {
            GLVoucherBatchEntry graph = PXGraph.CreateInstance <GLVoucherBatchEntry>();

            graph.filter.Current          = new GLVoucherBatchEntry.Filter();
            graph.VoucherBatches.Current  = graph.VoucherBatches.Search <GLVoucherBatch.voucherBatchNbr>(Voucher.Current.VoucherBatchNbr);
            graph.VouchersInBatch.Current = graph.VouchersInBatch.Search <GLVoucher.refNbr, GLVoucher.docType, GLVoucher.module>(Voucher.Current.RefNbr, Voucher.Current.DocType, Voucher.Current.Module);
            graph.ViewDocument.Press();
            return(adapter.Get());
        }
        public virtual IEnumerable ViewWorkBook(PXAdapter adapter)
        {
            GLVoucherBatchEntry graph = PXGraph.CreateInstance <GLVoucherBatchEntry>();

            graph.filter.Current            = new GLVoucherBatchEntry.Filter();
            graph.filter.Current.WorkBookID = Voucher.Current.WorkBookID;
            graph.VoucherBatches.Current    = graph.VoucherBatches.Search <GLVoucherBatch.voucherBatchNbr>(Voucher.Current.VoucherBatchNbr);
            string url = GLWorkBookMaint.WORKBOOK_URL + "?WorkBookID=" + Voucher.Current.WorkBookID;

            throw new PXRedirectRequiredException(url, graph, "");
        }