Cambios Remoto

This commit is contained in:
Michael Robles
2024-06-05 16:49:48 -07:00
parent d28b51be4e
commit 47f434c8ee
12 changed files with 8 additions and 5 deletions
+3 -3
View File
@@ -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;