| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("catalogo_items")] |
| | | 7 | | public class CatalogoItem |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 2444 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("codigo")] |
| | 7606 | 15 | | public int Codigo { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [MaxLength(150)] |
| | | 19 | | [Column("nombre")] |
| | 5253 | 20 | | public string Nombre { get; set; } = string.Empty; |
| | | 21 | | |
| | | 22 | | [Required] |
| | | 23 | | [MaxLength(30)] |
| | | 24 | | [Column("tipo")] |
| | 3588 | 25 | | public string Tipo { get; set; } = "haber_normal"; |
| | | 26 | | |
| | | 27 | | [Column("es_gravado")] |
| | 3170 | 28 | | public bool EsGravado { get; set; } = true; |
| | | 29 | | |
| | | 30 | | [Column("contribuye_w_para_5_3")] |
| | 623 | 31 | | public bool ContribuyeWPara53 { get; set; } = false; |
| | | 32 | | |
| | | 33 | | [Column("contribuye_w_para_10")] |
| | 577 | 34 | | public bool ContribuyeWPara10 { get; set; } = false; |
| | | 35 | | |
| | | 36 | | [Column("contribuye_w_para_20")] |
| | 454 | 37 | | public bool ContribuyeWPara20 { get; set; } = false; |
| | | 38 | | |
| | | 39 | | [Column("contribuye_w_nominal")] |
| | 2301 | 40 | | public bool ContribuyeWNominal { get; set; } = false; |
| | | 41 | | |
| | | 42 | | [MaxLength(20)] |
| | | 43 | | [Column("clasificacion_siif")] |
| | 2321 | 44 | | public string? ClasificacionSiif { get; set; } |
| | | 45 | | |
| | | 46 | | [MaxLength(50)] |
| | | 47 | | [Column("formula_calculo")] |
| | 38 | 48 | | public string? FormulaCalculo { get; set; } |
| | | 49 | | |
| | | 50 | | [Column("orden_calculo")] |
| | 42 | 51 | | public short OrdenCalculo { get; set; } = 0; |
| | | 52 | | |
| | | 53 | | [Column("item_par_ficto_id")] |
| | 178 | 54 | | public long? ItemParFictoId { get; set; } |
| | | 55 | | |
| | | 56 | | [MaxLength(100)] |
| | | 57 | | [Column("norma_legal")] |
| | 15 | 58 | | public string? NormaLegal { get; set; } |
| | | 59 | | |
| | | 60 | | [Column("acumula_aguinaldo")] |
| | 15 | 61 | | public bool AcumulaAguinaldo { get; set; } = false; |
| | | 62 | | |
| | | 63 | | [Column("lleva_aumento")] |
| | 15 | 64 | | public bool LlevaAumento { get; set; } = false; |
| | | 65 | | |
| | | 66 | | [Column("vigente")] |
| | 3082 | 67 | | public bool Vigente { get; set; } = true; |
| | | 68 | | |
| | | 69 | | // Navegación |
| | 2505 | 70 | | public virtual ICollection<RemuneracionGrado> RemuneracionesGrado { get; set; } = new List<RemuneracionGrado>(); |
| | 2505 | 71 | | public virtual ICollection<TarifaPorCategoria> TarifasPorCategoria { get; set; } = new List<TarifaPorCategoria>(); |
| | | 72 | | } |