// Get Invoice PaySchedule Data
        public JsonResult GetPaySheduleData(string fields)
        {
            Ctx            ctx = Session["ctx"] as Ctx;
            MCashBookModel objCashBookModel = new MCashBookModel();

            return(Json(JsonConvert.SerializeObject(objCashBookModel.GetPaySheduleData(fields)), JsonRequestBehavior.AllowGet));
        }
        //Get tax rate from tax
        public JsonResult GetTaxRate(string fields)
        {
            decimal        taxRate          = 0;
            Ctx            ctx              = Session["ctx"] as Ctx;
            MCashBookModel objCashBookModel = new MCashBookModel();

            taxRate = objCashBookModel.GetTaxRate(ctx, Util.GetValueOfInt(fields));
            return(Json(JsonConvert.SerializeObject(taxRate), JsonRequestBehavior.AllowGet));
        }
        // Added by Mohit to remove client side queries 10/05/2017
        //Get Cashbook Beginning Balance
        public JsonResult GetBegiBalance(string fields)
        {
            decimal        BeginBal         = 0;
            Ctx            ctx              = Session["ctx"] as Ctx;
            MCashBookModel objCashBookModel = new MCashBookModel();

            BeginBal = objCashBookModel.GetBeginBalance(ctx, Util.GetValueOfInt(fields));
            return(Json(JsonConvert.SerializeObject(BeginBal), JsonRequestBehavior.AllowGet));
        }
Example #4
0
        //Get CashBook Detail
        public JsonResult GetCashBook(string fields)
        {
            string retJSON = "";

            if (Session["ctx"] != null)
            {
                VAdvantage.Utility.Ctx ctx = Session["ctx"] as Ctx;
                MCashBookModel         objCashBookModel = new MCashBookModel();
                retJSON = JsonConvert.SerializeObject(objCashBookModel.GetCashBook(ctx, fields));
            }

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