using System.ComponentModel.DataAnnotations;

namespace foundation_system.Models.ViewModels
{
    public class RegistroGastoViewModel
    {
        [Required]
        public int CajaChicaId { get; set; }

        public string? CajaChicaNombre { get; set; }
        public decimal SaldoDisponible { get; set; }

        [Required]
        [Range(0.01, 10000, ErrorMessage = "El monto debe ser mayor a 0.")]
        public decimal Monto { get; set; }

        [Required]
        public DateOnly Fecha { get; set; } = DateOnly.FromDateTime(DateTime.Today);

        [Required]
        public string Descripcion { get; set; } = string.Empty;

        [Required(ErrorMessage = "Seleccione una categoría")]
        public int CategoriaId { get; set; }

        public int? ProveedorId { get; set; }
        
        // For file upload if needed later
        // public IFormFile? Comprobante { get; set; }
    }
}
