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
父節點 35989b3e04
當前提交 7a70f06bbb
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -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