public JsonResult GetSaldoAnterior(DateTime?FechaCorte, string IdCtaCble = "")
        {
            int    IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            double resultado = 0;

            if (FechaCorte != null)
            {
                resultado = bus_plancta.get_saldo_anterior(IdEmpresa, IdCtaCble, Convert.ToDateTime(FechaCorte));
            }

            return(Json(Math.Round(resultado, 2, MidpointRounding.AwayFromZero), JsonRequestBehavior.AllowGet));
        }
        public JsonResult GetSaldoContableAnt(int IdBanco = 0, int IdPeriodo = 0)
        {
            int    IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            double resultado = 0;
            var    bco       = bus_banco_cuenta.get_info(IdEmpresa, IdBanco);
            var    periodo   = bus_periodo.get_info(IdEmpresa, IdPeriodo);

            if (bco != null && periodo != null)
            {
                resultado = bus_plancta.get_saldo_anterior(IdEmpresa, bco.IdCtaCble, periodo.pe_FechaIni);
            }

            return(Json(Math.Round(resultado, 2, MidpointRounding.AwayFromZero), JsonRequestBehavior.AllowGet));
        }