Browse Source

client-barcode: Show sum of commodity and deposit on item info page, too (bug #202)

Sebastian Pipping 9 years ago
parent
commit
7046890acf
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      client-barcode/freitagskasse.py

+ 3
- 2
client-barcode/freitagskasse.py View File

@@ -122,8 +122,9 @@ def item_info_page(item):
122 122
 	print()
123 123
 	if item.deposit > 0:
124 124
 		myDisplay.display_screen("PREISINFO","%s: %4.2f Euro (%4.2f Euro Pfand)" % (item.name,item.price,item.deposit))
125
-		print(indent + '%s%4.2f Euro%s  (plus %4.2f Euro Pfand) .' \
126
-				% (COLOR_MUCH, item.price, COLOR_RESET, item.deposit))
125
+		print(indent + '%s%4.2f Euro%s + %4.2f Euro Pfand  = %s%4.2f Euro%s .' \
126
+				% (COLOR_SOME, item.price, COLOR_RESET, item.deposit,
127
+				COLOR_MUCH, item.price + item.deposit, COLOR_RESET))
127 128
 	else:
128 129
 		myDisplay.display_screen("PREISINFO","%s: %4.2f Euro" % (item.name,item.price))
129 130
 		print(indent + '%s%4.2f Euro%s .' \

Loading…
Cancel
Save