From: Michael Stapelberg Date: Sat, 29 Sep 2012 15:02:43 +0000 (+0200) Subject: actually increment transaction id X-Git-Tag: rgb2rv9~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d22eb3a9d2b2afa68cebbb0524aefc6172f7bdb;p=c128-kasse actually increment transaction id --- 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(); }