mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Improvements for bank transfer importing (#1762)
Co-authored-by: Raphael Michel <michel@rami.io> Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
This commit is contained in:
@@ -158,8 +158,9 @@ def parse(file):
|
||||
result.append({
|
||||
'amount': str(round_decimal(t.data['amount'].amount)),
|
||||
'reference': reference + (' EREF: {}'.format(eref) if eref else ''),
|
||||
'payer': (payer.get('name', '') + ' - ' + payer.get('iban', '')).strip(),
|
||||
'date': t.data['date'].isoformat()
|
||||
'payer': payer['name'].strip(),
|
||||
'date': t.data['date'].isoformat(),
|
||||
**{k: payer[k].strip() for k in ("iban", "bic") if payer.get(k)}
|
||||
})
|
||||
else:
|
||||
result.append({
|
||||
|
||||
Reference in New Issue
Block a user