| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | |
| | | 3 | | namespace FAU.Logica.DTOs; |
| | | 4 | | |
| | | 5 | | public class CrearCatalogoItemRequest |
| | | 6 | | { |
| | | 7 | | [Required] |
| | | 8 | | [MaxLength(150)] |
| | 11 | 9 | | public string Nombre { get; set; } = string.Empty; |
| | | 10 | | |
| | | 11 | | [Required] |
| | | 12 | | [RegularExpression(@"^\d{3}\.\d{3}$", ErrorMessage = "El formato debe ser NNN.NNN (ej: 042.568)")] |
| | 18 | 13 | | public string ClasificacionSiif { get; set; } = string.Empty; |
| | | 14 | | |
| | | 15 | | [Required] |
| | 18 | 16 | | public string Tipo { get; set; } = "haber_normal"; |
| | | 17 | | |
| | | 18 | | [MaxLength(100)] |
| | 1 | 19 | | public string? NormaLegal { get; set; } |
| | | 20 | | |
| | 6 | 21 | | public bool EsGravado { get; set; } = true; |
| | 1 | 22 | | public bool AcumulaAguinaldo { get; set; } = false; |
| | 1 | 23 | | public bool LlevaAumento { get; set; } = false; |
| | | 24 | | |
| | | 25 | | [Required] |
| | 17 | 26 | | public string FormulaCalculo { get; set; } = "por_grado"; |
| | | 27 | | |
| | 1 | 28 | | public short OrdenCalculo { get; set; } = 0; |
| | 1 | 29 | | public bool ContribuyeWPara53 { get; set; } = false; |
| | 1 | 30 | | public bool ContribuyeWPara10 { get; set; } = false; |
| | 1 | 31 | | public bool ContribuyeWPara20 { get; set; } = false; |
| | 1 | 32 | | public bool ContribuyeWNominal { get; set; } = false; |
| | 6 | 33 | | public bool Vigente { get; set; } = true; |
| | | 34 | | } |
| | | 35 | | |
| | | 36 | | public class ActualizarCatalogoItemRequest |
| | | 37 | | { |
| | | 38 | | [MaxLength(150)] |
| | | 39 | | public string? Nombre { get; set; } |
| | | 40 | | |
| | | 41 | | public string? Tipo { get; set; } |
| | | 42 | | |
| | | 43 | | [RegularExpression(@"^\d{3}\.\d{3}$", ErrorMessage = "El formato debe ser NNN.NNN (ej: 042.568)")] |
| | | 44 | | public string? ClasificacionSiif { get; set; } |
| | | 45 | | |
| | | 46 | | [MaxLength(100)] |
| | | 47 | | public string? NormaLegal { get; set; } |
| | | 48 | | |
| | | 49 | | public bool? EsGravado { get; set; } |
| | | 50 | | public bool? AcumulaAguinaldo { get; set; } |
| | | 51 | | public bool? LlevaAumento { get; set; } |
| | | 52 | | public string? FormulaCalculo { get; set; } |
| | | 53 | | public short? OrdenCalculo { get; set; } |
| | | 54 | | public bool? ContribuyeWPara53 { get; set; } |
| | | 55 | | public bool? ContribuyeWPara10 { get; set; } |
| | | 56 | | public bool? ContribuyeWPara20 { get; set; } |
| | | 57 | | public bool? ContribuyeWNominal { get; set; } |
| | | 58 | | } |