Banktransfer: Fix AttributeError

This commit is contained in:
Raphael Michel
2023-04-25 09:06:47 +02:00
parent 141634eb49
commit c0c2782db6

View File

@@ -250,7 +250,7 @@ class ActionView(View):
invoice_nos = {u, u.upper()}
if u.isdigit():
if hasattr(request, 'event'):
invoice_nos.add(u.zfill(request.event.invoice_numbers_counter_length))
invoice_nos.add(u.zfill(request.event.settings.invoice_numbers_counter_length))
else:
for i in range(2, 12):
invoice_nos.add(u.zfill(i))