campos de precio de compra a envio. no funciona el boton concluir

This commit is contained in:
carlos
2024-06-18 17:44:26 -06:00
parent e489535f2f
commit 0ecc195fbd
6 changed files with 3 additions and 1 deletions
+3 -1
View File
@@ -1327,7 +1327,7 @@ namespace compabetov2.database
try
{
string sqlEnvio = "INSERT INTO envios (fecha, direccion, telefono,responzable,total,cliente) VALUES(@fecha,@direccion , @telefono, @responzable, @total,@cliente);";
string sqlDetalle = "INSERT INTO detalle_envios (fk_envios, fk_variante, cantidad) VALUES(@fk_envios, @fk_variante, @cantidad);";
string sqlDetalle = "INSERT INTO detalle_envios (fk_envios, fk_variante, cantidad,precioVenta,precioCompra) VALUES(@fk_envios, @fk_variante, @cantidad, @precioVenta,@precioCompra);";
string sqlIdCuenta = "SELECT idEnvios FROM envios ORDER BY idEnvios DESC LIMIT 1";
string sqlImporte = "INSERT INTO detalle_importe_envio (fk_importe, cantidad, precio, fk_envio) VALUES(@fk_importe, @cantidad, @precio, @fk_envio);";
@@ -1355,6 +1355,8 @@ namespace compabetov2.database
commandDetalle.Parameters.AddWithValue("@fk_envios", idEnvio);
commandDetalle.Parameters.AddWithValue("@fk_variante", detalleEnvio.producto.idVariante);
commandDetalle.Parameters.AddWithValue("@cantidad", detalleEnvio.cantidad);
commandDetalle.Parameters.AddWithValue("@precioVenta", detalleEnvio.producto.precio);
commandDetalle.Parameters.AddWithValue("@precioCompra", detalleEnvio.producto.precioCompra);
commandDetalle.ExecuteNonQuery();
}