oh hell no

This commit is contained in:
fedpo
2024-09-08 18:46:32 +01:00
parent 393caac989
commit e3fd07a90a
105 changed files with 5743 additions and 232 deletions

View File

@@ -26,15 +26,19 @@ namespace Modelo
}
public void Add(Remito rem)
{
if (rem.Lotes.Count <= 0) return;
foreach (var detalle in rem.Lotes)
{
detalle.IdRemito = rem.Id;
Add(detalle);
}
}
public override void Add(Lote t)
{
t.Producto = (t.Producto.EsPerecedero) ?
context.ProductoPercederos.First(x => x.Id == t.Producto.Id) :
context.ProductoNoPercederos.First(x => x.Id == t.Producto.Id);
context.Lotes.Add(t);
Guardar();
}
public override void Del(Lote t)