summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-08-06 22:41:53 +0200
committerSebastian Reichel <sre@ring0.de>2012-08-06 22:41:53 +0200
commit7198a23cacda58b0a1d1ccf447a576740a6e21ae (patch)
tree0b4903c05a2fcc6b0daa8f2ebf8bf877496c1b78
parent9b54394318b0dda43a91ffacdaf7b70280b11347 (diff)
downloadserial-barcode-scanner-7198a23cacda58b0a1d1ccf447a576740a6e21ae.tar.bz2
show log entry for restocks
-rw-r--r--ui.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui.vala b/ui.vala
index 85ba41a..f034568 100644
--- a/ui.vala
+++ b/ui.vala
@@ -24,6 +24,9 @@ public void restock_dialog() {
var product = (id != null) ? uint64.parse(id) : 0;
var amount = (int) spinner.get_value();
+ int64 timestamp = (new DateTime.now_utc()).to_unix();
+ stdout.printf("[%lld] restock: %lld - %lld\n", timestamp, product, amount);
+
if(db.restock(product, amount))
window.hide();
});