public PaymentInvoice GetInvoice(string invoiceid, string ownerid, string creatorid)
        {
            Business.DataLayer bd = new Business.DataLayer();


            Business.AppInvoice appinv      = bd.GetInvoice(invoiceid, ownerid, creatorid);
            PaymentInvoice      tempinvoice = new PaymentInvoice();

            tempinvoice.invoicedata   = appinv.data;
            tempinvoice.createddate   = appinv.createddate;
            tempinvoice.invstatus     = appinv.status;
            tempinvoice.toaccid       = "";
            tempinvoice.toaccountname = "";
            return(tempinvoice);
        }
        public PaymentInvoice GetInvoice(string invoiceid, string ownerid, string creatorid)
        {
            Business.DataLayer bd = new Business.DataLayer();

            Business.AppInvoice appinv = bd.GetInvoice(invoiceid, ownerid, creatorid);
            PaymentInvoice tempinvoice = new PaymentInvoice();
            tempinvoice.invoicedata = appinv.data;
            tempinvoice.createddate = appinv.createddate;
            tempinvoice.invstatus = appinv.status;
            tempinvoice.toaccid = "";
            tempinvoice.toaccountname = "";
            return tempinvoice;
        }