diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index f1f1daa..821a9ef 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -315,16 +315,16 @@ class Status: show_bar() if isinstance(command, BuyCommand): - muff = 0; + mycmd = 0; if (command.includes_commodity()): - muff+=1; + mycmd+=1; if (command.includes_deposit()): - muff+=2; - if (muff==1): + mycmd+=2; + if (mycmd==1): mylabel=command.item_name() - if (muff==2): + if (mycmd==2): mylabel="Pfand "+command.commodity_label()[:9] - if (muff==3): + if (mycmd==3): mylabel=("%-13s" % (command.commodity_label()[:13]))+"+P" print_display('\x0b%-15s %4.2f' % (mylabel[:15],abs(command.difference()))); print_display('\x0b\nSUMME: {%02i} %8.2f' % ((i-1),initial_balance - self.balance));