mirror of
https://github.com/pretix/pretix.git
synced 2026-08-27 13:24:41 +00:00
Banktransfer: Correct matching of longer order codes
This commit is contained in:
@@ -6,6 +6,7 @@ import shutil
|
|||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
|
from django.conf import settings
|
||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
from django.shortcuts import redirect, render
|
from django.shortcuts import redirect, render
|
||||||
from django.utils.functional import cached_property
|
from django.utils.functional import cached_property
|
||||||
@@ -192,7 +193,8 @@ class ImportView(EventPermissionRequiredMixin, TemplateView):
|
|||||||
organizer=self.request.event.organizer.slug)
|
organizer=self.request.event.organizer.slug)
|
||||||
|
|
||||||
def annotate_data(self, data):
|
def annotate_data(self, data):
|
||||||
pattern = re.compile(self.request.event.slug.upper() + "[ ]*([A-Z0-9]{5})")
|
code_len = settings.ENTROPY['order_code']
|
||||||
|
pattern = re.compile(self.request.event.slug.upper() + "[ -_]*([A-Z0-9]{%s})" % code_len)
|
||||||
amount_pattern = re.compile("[^0-9.-]")
|
amount_pattern = re.compile("[^0-9.-]")
|
||||||
order_codes = []
|
order_codes = []
|
||||||
for row in data:
|
for row in data:
|
||||||
|
|||||||
Reference in New Issue
Block a user