Fix for encoding problems with barcode-display (fixes #26)

This commit is contained in:
Sebastian Lohff 2011-11-30 22:39:56 +01:00
parent 9e2b0574ee
commit 738b8cf240
1 changed files with 2 additions and 2 deletions

View File

@ -122,12 +122,12 @@ def item_info_page(item):
print('und kostet')
print()
if item.deposit > 0:
myDisplay.display_screen("PREISINFO","%s: %4.2f Euro (%4.2f Euro Pfand)" % (item.name,item.price,item.deposit))
myDisplay.display_screen("PREISINFO","%s: %4.2f Euro (%4.2f Euro Pfand)" % (asciify(item.name), item.price, item.deposit))
print(indent + '%s%4.2f Euro%s + %4.2f Euro Pfand = %s%4.2f Euro%s .' \
% (COLOR_SOME, item.price, COLOR_RESET, item.deposit,
COLOR_MUCH, item.price + item.deposit, COLOR_RESET))
else:
myDisplay.display_screen("PREISINFO","%s: %4.2f Euro" % (item.name,item.price))
myDisplay.display_screen("PREISINFO","%s: %4.2f Euro" % (asciify(item.name), item.price))
print(indent + '%s%4.2f Euro%s .' \
% (COLOR_MUCH, item.price, COLOR_RESET))
print()