Exemplo n.º 1
0
        public List <PaymentInvoice> GetOutboundInvoices(string ownerid, string creatorid)
        {
            Business.DataLayer bd = new Business.DataLayer();

            List <PaymentInvoice> invoices = new List <PaymentInvoice>();

            foreach (Business.AppInvoice appinv in bd.GetAlliInvoices(ownerid, creatorid, "invoice", "outbound"))
            {
                PaymentInvoice tempinvoice = new PaymentInvoice();
                tempinvoice.invoiceid     = appinv.InvoiceId;
                tempinvoice.invoicedata   = appinv.data;
                tempinvoice.createddate   = appinv.createddate;
                tempinvoice.invstatus     = appinv.status;
                tempinvoice.toaccid       = "";
                tempinvoice.toaccountname = "";
                invoices.Add(tempinvoice);
            }

            return(invoices);
        }
Exemplo n.º 2
0
        public List<PaymentInvoice> GetOutboundInvoices(string ownerid, string creatorid)
        {
            Business.DataLayer bd = new Business.DataLayer();

            List<PaymentInvoice> invoices = new List<PaymentInvoice>();
            foreach (Business.AppInvoice appinv in bd.GetAlliInvoices(ownerid, creatorid, "invoice", "outbound"))
            {
                PaymentInvoice tempinvoice = new PaymentInvoice();
                tempinvoice.invoiceid = appinv.InvoiceId;
                tempinvoice.invoicedata = appinv.data;
                tempinvoice.createddate = appinv.createddate;
                tempinvoice.invstatus = appinv.status;
                tempinvoice.toaccid = "";
                tempinvoice.toaccountname = "";
                invoices.Add(tempinvoice);
            }

            return invoices;
        }