< Summary

Information
Class: FAU.Entidades.Aguinaldo
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/Aguinaldo.cs
Line coverage
38%
Covered lines: 5
Uncovered lines: 8
Coverable lines: 13
Total lines: 58
Line coverage: 38.4%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%210%
get_PersonaId()100%11100%
get_Anio()100%11100%
get_Semestre()100%11100%
get_TotalHaberesGravadosSemestre()100%11100%
get_MesesTrabajados()100%11100%
get_IrpfAguinaldo()100%210%
get_Nominal()100%210%
get_Montepio()100%210%
get_Sanidad()100%210%
get_TotalDescuentos()100%210%
get_Liquido()100%210%
get_Redondeo()100%210%

File(s)

/home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/Aguinaldo.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6/// <summary>
 7/// SAC semestral por persona. Monto = total_haberes_gravados_semestre / 12
 8/// (equiv. AGUINALD.DBF).
 9/// </summary>
 10[Table("aguinaldos")]
 11public class Aguinaldo
 12{
 13    [Key]
 14    [Column("id")]
 015    public long Id { get; set; }
 16
 17    [Required]
 18    [Column("persona_id")]
 319    public long PersonaId { get; set; }
 20
 21    [Required]
 22    [Column("anio")]
 623    public short Anio { get; set; }
 24
 25    [Required]
 26    [Column("semestre")]
 627    public short Semestre { get; set; }
 28
 29    [Required]
 30    [Column("total_haberes_gravados_semestre", TypeName = "numeric(14,2)")]
 631    public decimal TotalHaberesGravadosSemestre { get; set; }
 32
 33    [Required]
 34    [Column("meses_trabajados")]
 335    public short MesesTrabajados { get; set; }
 36
 37    [Required]
 38    [Column("irpf_aguinaldo", TypeName = "numeric(14,2)")]
 039    public decimal IrpfAguinaldo { get; set; }
 40
 41    [Column("nominal", TypeName = "numeric(14,2)")]
 042    public decimal? Nominal { get; set; }
 43
 44    [Column("montepio", TypeName = "numeric(14,2)")]
 045    public decimal? Montepio { get; set; }
 46
 47    [Column("sanidad", TypeName = "numeric(14,2)")]
 048    public decimal? Sanidad { get; set; }
 49
 50    [Column("total_descuentos", TypeName = "numeric(14,2)")]
 051    public decimal? TotalDescuentos { get; set; }
 52
 53    [Column("liquido", TypeName = "numeric(14,2)")]
 054    public decimal? Liquido { get; set; }
 55
 56    [Column("redondeo", TypeName = "numeric(14,2)")]
 057    public decimal Redondeo { get; set; }
 58}