Browse Source

client-barcode: Allow empty commit (bug #17, broken by introduction of bulkbuy)

master
Sebastian Pipping 11 years ago
parent
commit
621f8017c8
  1. 6
      client-barcode/freitagskasse.py

6
client-barcode/freitagskasse.py

@ -268,6 +268,9 @@ class Status: @@ -268,6 +268,9 @@ class Status:
assert(self.logged_in())
def compress_deposit_commands():
if not self.transfers:
return
dummy, initial_balance = self.transfers[0]
balance_before = initial_balance
compressed_deposit = DepositCommand(Decimal('0'))
@ -283,6 +286,9 @@ class Status: @@ -283,6 +286,9 @@ class Status:
self.transfers = others
def process_buy_commands_combined():
if not self.transfers:
return
# Compress BuyCommands, use a single bulkbuy
dummy, initial_balance = self.transfers[0]
balance_before = initial_balance

Loading…
Cancel
Save