client-barcode: Save empty bulkbuy going over the line

This commit is contained in:
Sebastian Pipping 2011-10-26 17:51:38 +02:00
parent 156a0df88d
commit 64ce18cb74
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ def buy_item(item_id, what_about_it, user_name):
def bulk_buy(buycommands, user_name): def bulk_buy(buycommands, user_name):
item_ids = tuple(e.item_id() for e in buycommands if e.includes_commodity()) item_ids = tuple(e.item_id() for e in buycommands if e.includes_commodity())
deposit_ids = tuple(e.item_id() for e in buycommands if e.includes_deposit()) deposit_ids = tuple(e.item_id() for e in buycommands if e.includes_deposit())
if not item_ids and not deposit_ids:
return
request_dict = { request_dict = {
'user':user_name, 'user':user_name,