18 lines
647 B
C#
18 lines
647 B
C#
|
|
using System;
|
||
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
|
||
|
|
namespace GestionIntegral.Api.Dtos.Distribucion
|
||
|
|
{
|
||
|
|
public class UpdatePorcPagoDto
|
||
|
|
{
|
||
|
|
// IdPublicacion, IdDistribuidor y VigenciaD no deberían cambiar.
|
||
|
|
// Si cambian, se considera un nuevo registro.
|
||
|
|
// Solo se actualiza el Porcentaje y opcionalmente se cierra con VigenciaH.
|
||
|
|
|
||
|
|
[Required(ErrorMessage = "El porcentaje es obligatorio.")]
|
||
|
|
[Range(0, 100, ErrorMessage = "El porcentaje debe estar entre 0 y 100.")]
|
||
|
|
public decimal Porcentaje { get; set; }
|
||
|
|
|
||
|
|
public DateTime? VigenciaH { get; set; } // Para cerrar el período
|
||
|
|
}
|
||
|
|
}
|