commit a21ccce30297919d9ffb8581d2391d871db7cd10
parent cd3de6fb48be6f7edbb5158096b4c84658e36141
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 5 Jan 2026 12:39:45 +0100
fix product amount usage
Diffstat:
3 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/src/backenddb/pg_lookup_inventory_products.c b/src/backenddb/pg_lookup_inventory_products.c
@@ -86,8 +86,6 @@ lookup_inventory_products_cb (void *cls,
&pd.description_i18n),
GNUNET_PQ_result_spec_string ("unit",
&pd.unit),
- TALER_PQ_result_spec_amount_with_currency ("price",
- &pd.price),
TALER_PQ_result_spec_array_amount_with_currency (pg->conn,
"price_array",
&pd.price_array_length,
@@ -156,7 +154,6 @@ TMH_PG_lookup_inventory_products (void *cls,
",description_i18n::TEXT"
",product_name"
",unit"
- ",price"
",price_array"
",taxes::TEXT"
",image_hash"
diff --git a/src/backenddb/pg_lookup_inventory_products_filtered.c b/src/backenddb/pg_lookup_inventory_products_filtered.c
@@ -79,8 +79,6 @@ lookup_inventory_products_cb (void *cls,
&pd.description_i18n),
GNUNET_PQ_result_spec_string ("unit",
&pd.unit),
- TALER_PQ_result_spec_amount_with_currency ("price",
- &pd.price),
TALER_PQ_result_spec_array_amount_with_currency (pg->conn,
"price_array",
&pd.price_array_length,
@@ -165,7 +163,6 @@ TMH_PG_lookup_inventory_products_filtered (
",description_i18n::TEXT"
",product_name"
",unit"
- ",price"
",price_array"
",taxes::TEXT"
",image_hash"
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h
@@ -477,13 +477,7 @@ struct TALER_MERCHANTDB_InventoryProductDetails
char *unit;
/**
- * Price per unit of the product.
- */
- struct TALER_Amount price;
-
- /**
- * Optional list of per-unit prices. When NULL or empty, @e price
- * must be used as the canonical single price.
+ * List of per-unit prices.
*/
struct TALER_Amount *price_array;