client-barcode: No longer mention absense of deposit for items how never have deposit

This commit is contained in:
Sebastian Pipping 2011-10-15 04:17:22 +02:00
parent 35989b3e04
commit 7a70f06bbb
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class BuyCommand(object):
return self._item.name
def commodity_label(self):
if self._deposit:
if self._deposit or self.deposit_value() <= 0:
return self._item.name
else:
return "%s (exkl. Pfand)" % self._item.name