This repository has been archived on 2024-08-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Final_OOP/Entidades/Lote.cs
2024-08-04 21:38:55 +01:00

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
}
}