campos de precio de compra a envio. no funciona el boton concluir
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
-1
@@ -1327,7 +1327,7 @@ namespace compabetov2.database
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
string sqlEnvio = "INSERT INTO envios (fecha, direccion, telefono,responzable,total,cliente) VALUES(@fecha,@direccion , @telefono, @responzable, @total,@cliente);";
|
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 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);";
|
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_envios", idEnvio);
|
||||||
commandDetalle.Parameters.AddWithValue("@fk_variante", detalleEnvio.producto.idVariante);
|
commandDetalle.Parameters.AddWithValue("@fk_variante", detalleEnvio.producto.idVariante);
|
||||||
commandDetalle.Parameters.AddWithValue("@cantidad", detalleEnvio.cantidad);
|
commandDetalle.Parameters.AddWithValue("@cantidad", detalleEnvio.cantidad);
|
||||||
|
commandDetalle.Parameters.AddWithValue("@precioVenta", detalleEnvio.producto.precio);
|
||||||
|
commandDetalle.Parameters.AddWithValue("@precioCompra", detalleEnvio.producto.precioCompra);
|
||||||
commandDetalle.ExecuteNonQuery();
|
commandDetalle.ExecuteNonQuery();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user