20 lines
694 B
C#
20 lines
694 B
C#
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
|
|
}
|
|
} |