]> git.sur5r.net Git - c128-kasse/commitdiff
actually increment transaction id
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 29 Sep 2012 15:02:43 +0000 (17:02 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 29 Sep 2012 15:02:43 +0000 (17:02 +0200)
src/kasse.c

index d5d55e71845738ea89cc3abbe5d93de64249eb65..5c0ddb9389735dc0cb4da17a4c514e65e57e44d9 100644 (file)
@@ -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"));
        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();
 }
 
        print_the_buffer();
 }