summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2018-07-18 23:52:23 +0200
committerSebastian Reichel <sre@ring0.de>2018-07-20 23:41:34 +0200
commit5f0fd3619b10668f1bc005315126b944140ea1e7 (patch)
treee17a71b6a690833bfb9811763c180c1c83bd252e /src
parent095a6f9d4afd03b6a815582911cfb025d77069a3 (diff)
downloadserial-barcode-scanner-5f0fd3619b10668f1bc005315126b944140ea1e7.tar.bz2
database: fix get_product_for_ean
Diffstat (limited to 'src')
-rw-r--r--src/database/database.vala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/database/database.vala b/src/database/database.vala
index 0b37775..8d1bb84 100644
--- a/src/database/database.vala
+++ b/src/database/database.vala
@@ -304,11 +304,11 @@ public class DataBase : Object {
try {
p.ean = ean_alias_get(ean);
- p.name = get_product_name(ean);
- p.category = get_product_category(ean);
- p.amount = get_product_amount(ean);
- p.memberprice = get_product_price(1, ean);
- p.guestprice = get_product_price(0, ean);
+ p.name = get_product_name(p.ean);
+ p.category = get_product_category(p.ean);
+ p.amount = get_product_amount(p.ean);
+ p.memberprice = get_product_price(1, p.ean);
+ p.guestprice = get_product_price(0, p.ean);
return p;
} catch(DatabaseError e){
throw e;