Ejemplo n.º 1
0
        public JsonResult PrintCustomerLedger(int id)
        {
            //List<SP_GetCustomerInvoiceDetailsForReciept_Result> AllInvoices = new List<SP_GetCustomerInvoiceDetailsForReciept_Result>();
            // var AllInvoices;

            List <SP_GetCustomerByID_Result> Cust = new List <SP_GetCustomerByID_Result>();

            Cust = MM.GetCustByID(id);

            foreach (var item in Cust)
            {
                ViewBag.Customername = item.Customer;
                ViewBag.Addr         = item.Address1;
            }

            var CustomerLedger = RM.GetCustomerLedgerReportForPrint(id);

            return(Json(CustomerLedger, JsonRequestBehavior.AllowGet));
        }