This commit is contained in:
Michael Robles
2024-07-07 11:27:40 -07:00
parent e04f2b793a
commit d60d438d38
9 changed files with 34 additions and 9 deletions
+3 -2
View File
@@ -512,7 +512,8 @@ namespace compabetov2.database
int cantidadIndex = reader.GetOrdinal("cantidad");
int imgIndex = reader.GetOrdinal("img");
int fkProductoIndex = reader.GetOrdinal("fk_producto");
decimal precioCompra = reader.GetOrdinal("precioCompra");
int precioCompraIndex = reader.GetOrdinal("precioCompra");
while (reader.Read())
{
@@ -524,7 +525,7 @@ namespace compabetov2.database
reader.GetInt32(cantidadIndex),
reader.GetString(imgIndex),
reader.GetInt32(fkProductoIndex),
precioCompra
reader.GetDecimal(precioCompraIndex)
);
productos.Add(producto);