From 7198a23cacda58b0a1d1ccf447a576740a6e21ae Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Mon, 6 Aug 2012 22:41:53 +0200 Subject: show log entry for restocks --- ui.vala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui.vala') 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(); }); -- cgit v1.2.3