diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json index 3879607..14c2cf7 100644 --- a/.vs/VSWorkspaceState.json +++ b/.vs/VSWorkspaceState.json @@ -1,6 +1,9 @@ { "ExpandedNodes": [ - "" + "", + "\\Cuentas", + "\\database", + "\\Principal" ], "SelectedNode": "\\Solution.sln", "PreviewInSolutionExplorer": false diff --git a/.vs/compabetoOG/v17/.wsuo b/.vs/compabetoOG/v17/.wsuo index b05789f..ca070ec 100644 Binary files a/.vs/compabetoOG/v17/.wsuo and b/.vs/compabetoOG/v17/.wsuo differ diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe index bb7b9f6..1aa92d6 100644 Binary files a/bin/Debug/compabetov2.exe and b/bin/Debug/compabetov2.exe differ diff --git a/bin/Debug/compabetov2.pdb b/bin/Debug/compabetov2.pdb index 7bc63c2..27d95ab 100644 Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ diff --git a/bin/Debug/data.db b/bin/Debug/data.db index a29aa7b..b2f8fb2 100644 Binary files a/bin/Debug/data.db and b/bin/Debug/data.db differ diff --git a/database/DAO.cs b/database/DAO.cs index d27df53..2f48858 100644 --- a/database/DAO.cs +++ b/database/DAO.cs @@ -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; diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 4382aa9..10a1a65 100644 Binary files a/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/obj/Debug/compabetov2.csproj.AssemblyReference.cache b/obj/Debug/compabetov2.csproj.AssemblyReference.cache index c057221..2692e89 100644 Binary files a/obj/Debug/compabetov2.csproj.AssemblyReference.cache and b/obj/Debug/compabetov2.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache b/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache index 4e6cbd4..c515b82 100644 --- a/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache +++ b/obj/Debug/compabetov2.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -63a64a54bc73e8651fb89f1a0901353ab83d35804c69edd565e24f2be4325b47 +e9fe970c95e178692c332067dd30d0ac1c7f5a7190013fcb65c40593ddd0ee2d diff --git a/obj/Debug/compabetov2.csproj.GenerateResource.cache b/obj/Debug/compabetov2.csproj.GenerateResource.cache index a7ec042..b3c67ed 100644 Binary files a/obj/Debug/compabetov2.csproj.GenerateResource.cache and b/obj/Debug/compabetov2.csproj.GenerateResource.cache differ diff --git a/obj/Debug/compabetov2.exe b/obj/Debug/compabetov2.exe index bb7b9f6..1aa92d6 100644 Binary files a/obj/Debug/compabetov2.exe and b/obj/Debug/compabetov2.exe differ diff --git a/obj/Debug/compabetov2.pdb b/obj/Debug/compabetov2.pdb index 7bc63c2..27d95ab 100644 Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ