oh hell no
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Entidades
|
||||
{
|
||||
public class Lote: Detalle<Producto>
|
||||
{
|
||||
public int IdRemito { get; set; }
|
||||
public int IdRemito { get; set; }
|
||||
public DateTime Fecha { get; set; }
|
||||
public bool Habilitado { get; set; }
|
||||
|
||||
|
||||
@@ -8,14 +8,13 @@
|
||||
public int Id { get; set; }
|
||||
|
||||
public Proveedor Proveedor { get; set; }
|
||||
public int IdProveedor { get; set; }
|
||||
private List<Lote> lotesDeProductosEntregados = new List<Lote>();
|
||||
public ReadOnlyCollection<Lote> Lotes => lotesDeProductosEntregados.AsReadOnly();
|
||||
|
||||
public List<Lote> Lotes = new List<Lote>();
|
||||
public void AñadirLote(Lote lote)
|
||||
{
|
||||
try
|
||||
{
|
||||
lotesDeProductosEntregados.Add(lote);
|
||||
Lotes.Add(lote);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user