Cambios Remoto
This commit is contained in:
+3
-3
@@ -1293,7 +1293,7 @@ namespace compabetov2.database
|
||||
|
||||
conexion.Open();
|
||||
|
||||
string sql = "SELECT * FROM envios ORDER BY idEnvios DESC";
|
||||
string sql = "SELECT * FROM envios ORDER BY idEnvios DESC limit 30";
|
||||
SQLiteCommand command = new SQLiteCommand(sql, conexion);
|
||||
reader = command.ExecuteReader();
|
||||
|
||||
@@ -1397,7 +1397,7 @@ namespace compabetov2.database
|
||||
command.Parameters.AddWithValue("@estado", "CANCELADO");
|
||||
command.ExecuteNonQuery();
|
||||
|
||||
foreach (DetalleEnvioModel detalleEnvio in detalles)
|
||||
/* foreach (DetalleEnvioModel detalleEnvio in detalles)
|
||||
{
|
||||
//actualizar stock
|
||||
SQLiteCommand commandStock = new SQLiteCommand(sqlStock, conexion);
|
||||
@@ -1410,7 +1410,7 @@ namespace compabetov2.database
|
||||
commandActualizarStock.Parameters.AddWithValue("@stock", stock - (detalleEnvio.cantidad * detalleEnvio.producto.cantidad));
|
||||
commandActualizarStock.Parameters.AddWithValue("@idProducto", detalleEnvio.producto.fkProducto);
|
||||
commandActualizarStock.ExecuteNonQuery();
|
||||
}
|
||||
}*/
|
||||
|
||||
transaccion.Commit();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user