public IActionResult GetPreEntry(string companyId, double accountingperiodid)
        {
            FechaTransaccionCL ft = new FechaTransaccionCL();
            var fecha             = ft.GetAll(companyId).FirstOrDefault(x => x.Id == accountingperiodid);

            if (fecha is null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(_asientoCL.GetPreEntry(companyId, fecha)));
            }
        }
Exemplo n.º 2
0
        private void CargarDatos()
        {
            ListaCuentas = CuentaCL.GetAll(GlobalConfig.Compañia);
            var lstDts = new FechaTransaccionCL().GetAllActive(GlobalConfig.Compañia, GlobalConfig.Usuario);

            AFechaFinal.DataSource = lstDts;


            var lstBfchFnl = new List <FechaTransaccion> {
                (from c1 in lstDts select c1).OrderByDescending(x => x.Fecha).LastOrDefault()
            };

            AFechaInicio.DataSource = lstBfchFnl;

            SetCuentasEnLista();

            CrearColumnasParaNombre();
        }
Exemplo n.º 3
0
        private void CargarDatos()
        {
            var lst    = CuentaCL.GetAll(GlobalConfig.Compañia);
            var lstDts = new FechaTransaccionCL().GetAllActive(GlobalConfig.Compañia, GlobalConfig.Usuario);

            _lstExcel = from c in lst where c.TipoCuenta.TipoCuenta == TipoCuenta.Ingreso || c.TipoCuenta.TipoCuenta == TipoCuenta.Egreso || c.TipoCuenta.TipoCuenta == TipoCuenta.Costo_Venta select c;
            AFechaFinal.DataSource = lstDts;


            var lstBfchFnl = new List <FechaTransaccion> {
                (from c1 in lstDts select c1).OrderByDescending(x => x.Fecha).LastOrDefault()
            };

            AFechaInicio.DataSource = lstBfchFnl;


            CrearColumnasParaNombre();
        }