errores menores

This commit is contained in:
carlos
2024-01-29 22:16:00 -06:00
parent b0ed85d947
commit 50722c2234
9 changed files with 20 additions and 2 deletions
+2 -1
View File
@@ -1431,7 +1431,7 @@ namespace compabetov2.database
{
try
{
string sqlVenta = "INSERT INTO venta (fecha, total) VALUES(@fecha, @total);";
string sqlVenta = "INSERT INTO venta (fecha, total,responzable) VALUES(@fecha, @total,@responzable);";
string sqlDetalle = "INSERT INTO detalle_venta (fk_venta, fk_producto, cantidad) VALUES(@idVenta, @idProducto, @cantidada);";
string sqlEnvio = "UPDATE envios SET estado ='CONCLUIDO' WHERE idEnvios = @idEnvios;";
string sqlIdVenta = "SELECT idVenta FROM venta ORDER BY idVenta DESC LIMIT 1";
@@ -1440,6 +1440,7 @@ namespace compabetov2.database
SQLiteCommand commandVenta = new SQLiteCommand(sqlVenta, conexion);
commandVenta.Parameters.AddWithValue("@fecha", DateTime.Now.ToString());
commandVenta.Parameters.AddWithValue("@total", envio.total);
commandVenta.Parameters.AddWithValue("@responzable", envio.responsable);
commandVenta.ExecuteNonQuery();
SQLiteCommand commandEnvio = new SQLiteCommand(sqlEnvio, conexion);