Fix: ahora los remitos guardan bien
This commit is contained in:
@@ -17,16 +17,7 @@ namespace Controladora
|
||||
{
|
||||
repositorioLotes = new(new Context());
|
||||
}
|
||||
|
||||
public string AltaStock(Remito t)
|
||||
{
|
||||
if (t == null) return "Esta Mal Cargado";
|
||||
|
||||
repositorioLotes.Add(t);
|
||||
return repositorioLotes.Guardar() ?
|
||||
"Se Cargo Correctamente" :
|
||||
"Fallo la Carga";
|
||||
}
|
||||
|
||||
public string DisminuirStock(ReadOnlyCollection<DetalleFactura> detalleFactura)
|
||||
{
|
||||
var ret = false;
|
||||
|
||||
@@ -26,9 +26,8 @@ namespace Controladora
|
||||
orden.Entregado = true;
|
||||
var retMarcarOrdenEntregada = ControladoraOrdenDeCompras.Instance.Modificar(orden);
|
||||
|
||||
|
||||
repositorioRemito.Add(t);
|
||||
ControladoraLotes.Instance.AltaStock(t);
|
||||
|
||||
|
||||
|
||||
return (repositorioRemito.Guardar()) ?
|
||||
|
||||
Reference in New Issue
Block a user