diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-08-06 22:41:53 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-08-06 22:41:53 +0200 |
commit | 7198a23cacda58b0a1d1ccf447a576740a6e21ae (patch) | |
tree | 0b4903c05a2fcc6b0daa8f2ebf8bf877496c1b78 | |
parent | 9b54394318b0dda43a91ffacdaf7b70280b11347 (diff) | |
download | serial-barcode-scanner-7198a23cacda58b0a1d1ccf447a576740a6e21ae.tar.bz2 |
show log entry for restocks
-rw-r--r-- | ui.vala | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); }); |