From 7046890acfc69cf0deabd3ce2533aa6f7e62e48e Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 19 Oct 2011 19:43:33 +0200 Subject: [PATCH] client-barcode: Show sum of commodity and deposit on item info page, too (bug #202) --- client-barcode/freitagskasse.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index 09650b6..939c14f 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -122,8 +122,9 @@ def item_info_page(item): print() if item.deposit > 0: myDisplay.display_screen("PREISINFO","%s: %4.2f Euro (%4.2f Euro Pfand)" % (item.name,item.price,item.deposit)) - print(indent + '%s%4.2f Euro%s (plus %4.2f Euro Pfand) .' \ - % (COLOR_MUCH, item.price, COLOR_RESET, 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)) print(indent + '%s%4.2f Euro%s .' \