26 lines
630 B
C#
26 lines
630 B
C#
|
|
namespace Entidades
|
|
{
|
|
public class Lote
|
|
{
|
|
public int Id { get; set; }
|
|
public DateTime Fecha { get; set; }
|
|
public Producto Producto { get; set; }
|
|
public long CantidadDeProductos { get; set; }
|
|
public bool Habilitado { get; set; }
|
|
public string NombreProducto
|
|
{
|
|
get { return Producto?.Nombre ?? string.Empty; }
|
|
}
|
|
public double PrecioUnitario
|
|
{
|
|
get { return Producto?.Precio ?? 0; }
|
|
}
|
|
public double Subtotal
|
|
{
|
|
get { return PrecioUnitario * CantidadDeProductos; }
|
|
}
|
|
}
|
|
|
|
}
|