public virtual IEnumerable ViewPayment(PXAdapter adapter)
        {
            PendingPPDDebitAdjApp adj = Applications.Current;

            if (adj != null)
            {
                APPayment payment = PXSelect <APPayment, Where <APPayment.refNbr, Equal <Current <PendingPPDDebitAdjApp.payRefNbr> >,
                                                                And <APPayment.docType, Equal <Current <PendingPPDDebitAdjApp.payDocType> > > > >
                                    .Select(this).First();

                if (payment != null)
                {
                    PXGraph graph = PXGraph.CreateInstance <APPaymentEntry>();
                    PXRedirectHelper.TryRedirect(graph, payment, PXRedirectHelper.WindowMode.NewWindow);
                }
            }
            return(adapter.Get());
        }
Пример #2
0
        public virtual IEnumerable ViewInvoice(PXAdapter adapter)
        {
            PendingPPDDebitAdjApp adj = Applications.Current;

            if (adj != null)
            {
                APInvoice invoice = PXSelect <APInvoice, Where <APInvoice.refNbr, Equal <Current <PendingPPDDebitAdjApp.invRefNbr> >,
                                                                And <APInvoice.docType, Equal <Current <PendingPPDDebitAdjApp.invDocType> > > > >
                                    .Select(this).First();

                if (invoice != null)
                {
                    PXGraph graph = PXGraph.CreateInstance <APInvoiceEntry>();
                    PXRedirectHelper.TryRedirect(graph, invoice, PXRedirectHelper.WindowMode.NewWindow);
                }
            }
            return(adapter.Get());
        }