コード例 #1
0
        public ActionResult Invoice(int Paymentid)
        {
            Invoice objInvoice = new CustomerInvoiceRepository().GetInvoice(Paymentid);
            var     internalid = CustomerInvoiceRepository.GetNextRefNo();

            objInvoice.CustInvoiceRefNo    = internalid;
            objInvoice.CustInvoiceDate     = DateTime.Now;
            objInvoice.BillDueDate         = DateTime.Now;
            objInvoice.CustomerInvoiceItem = new CustomerInvoiceRepository().GetInvoiceItem(Paymentid);
            return(View("Invoice", objInvoice));
            //return View();
        }