29 lines
700 B
C#
29 lines
700 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; }
|
|
}
|
|
<<<<<<< HEAD
|
|
public double PrecioUnitario
|
|
{
|
|
get { return Producto?.Precio ?? 0; }
|
|
}
|
|
public double Subtotal
|
|
{
|
|
get { return PrecioUnitario * CantidadDeProductos; }
|
|
}
|
|
=======
|
|
>>>>>>> 5b78d74e54350285696596720e82f5fbd99b4d02
|
|
}
|
|
|
|
}
|