hay 1 bug en el mostrarstock
This commit is contained in:
@@ -83,7 +83,7 @@ namespace Modelo
|
||||
public bool DisminuirStock(DetalleFactura detalleFactura)
|
||||
{
|
||||
bool ret = false;
|
||||
while (detalleFactura.Cantidad >= 0)
|
||||
while (detalleFactura.Cantidad > 0)
|
||||
{
|
||||
var elementoAdisminuir = almacen.Where(x=> x.Habilitado == true)
|
||||
.First(x => x.Producto.Id == detalleFactura.Producto.Id);
|
||||
|
||||
Reference in New Issue
Block a user