From 7a70f06bbb143e9fadbe64e0134d76a118ba78da Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sat, 15 Oct 2011 04:17:22 +0200 Subject: [PATCH] client-barcode: No longer mention absense of deposit for items how never have deposit --- client-barcode/freitagslib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-barcode/freitagslib/commands.py b/client-barcode/freitagslib/commands.py index f986c40..1782118 100644 --- a/client-barcode/freitagslib/commands.py +++ b/client-barcode/freitagslib/commands.py @@ -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