Ya perdí el hilo de los cambios pero ahi van.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
namespace GestionIntegral.Api.Dtos.Distribucion
|
||||
{
|
||||
public class CreateControlDevolucionesDto
|
||||
{
|
||||
[Required]
|
||||
public int IdEmpresa { get; set; }
|
||||
[Required]
|
||||
public DateTime Fecha { get; set; }
|
||||
[Required, Range(0, int.MaxValue)] // Entrada puede ser 0 si solo hay sobrantes/sin cargo
|
||||
public int Entrada { get; set; }
|
||||
[Required, Range(0, int.MaxValue)]
|
||||
public int Sobrantes { get; set; }
|
||||
[StringLength(250)]
|
||||
public string? Detalle { get; set; }
|
||||
[Required, Range(0, int.MaxValue)]
|
||||
public int SinCargo { get; set; } = 0; // Default 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user