diff --git a/client-barcode/freitagslib/commands.py b/client-barcode/freitagslib/commands.py index fb8f6c2..762d1fc 100644 --- a/client-barcode/freitagslib/commands.py +++ b/client-barcode/freitagslib/commands.py @@ -26,7 +26,7 @@ class DepositCommand(Command): class BuyCommand(Command): def __init__(self, item): self.item = item - self._difference = item.price + self._difference = -item.price def run(self, user_name): net.buy_item(self.item.id, user_name)