falta que se actualize numProducto y los infomes
This commit is contained in:
@@ -68,5 +68,20 @@ namespace Modelo
|
||||
{
|
||||
return orden.MostrarDetalles();
|
||||
}
|
||||
|
||||
public bool MarcarEntregado(OrdenDeCompra orden)
|
||||
{
|
||||
bool ret = false;
|
||||
if (orden == null) return ret;
|
||||
if (orden.Id < 0) return ret;
|
||||
if (orden.Entregado == false) return ret;
|
||||
var ordenAModificar = almacen.FindIndex(x => x.Id == orden.Id);
|
||||
if (ordenAModificar > -1)
|
||||
{
|
||||
almacen[ordenAModificar].Entregado = true;
|
||||
ret = true;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user