diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-08-01 20:39:39 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-08-01 20:39:39 +0200 |
commit | 501c116cee7bd4839eb68314129e26c0b2861307 (patch) | |
tree | 0a98a265c29a035b4fa3ad8fabaad40694231f74 /main.vala | |
parent | ce1b833aec12f16c066c11c9b049f5c1270fd8ec (diff) | |
download | serial-barcode-scanner-501c116cee7bd4839eb68314129e26c0b2861307.tar.bz2 |
print price for purchases
Diffstat (limited to 'main.vala')
-rw-r--r-- | main.vala | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -106,7 +106,7 @@ public static bool interpret(string data) { } if(db.buy(id)) { - stdout.printf("[%lld] gekaufter Artikel: %s\n", timestamp, db.get_product_name(id)); + stdout.printf("[%lld] gekaufter Artikel: %s (%d,%02d €)\n", timestamp, db.get_product_name(id), db.get_product_price(id)/100, db.get_product_price(id) % 100); return true; } else { stdout.printf("[%lld] Kauf fehlgeschlagen!\n", timestamp); |