From 8d22eb3a9d2b2afa68cebbb0524aefc6172f7bdb Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 29 Sep 2012 17:02:43 +0200 Subject: [PATCH] actually increment transaction id --- src/kasse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kasse.c b/src/kasse.c index d5d55e7..5c0ddb9 100644 --- a/src/kasse.c +++ b/src/kasse.c @@ -94,6 +94,7 @@ static void print_log(char *name, int item_price, int einheiten, char *nickname, sprintf(print_buffer, "%c[%3u] %s - %-" xstr(MAX_ITEM_NAME_LENGTH) "s - %s - %s - %d - an %s\r", 17, status.transaction_id, time, name, price, rest, einheiten, (*nickname != '\0' ? nickname : "Unbekannt")); + status.transaction_id++; print_the_buffer(); } -- 2.39.5