Bank transfer: Recognize BICs in MT940

This commit is contained in:
Raphael Michel
2021-01-08 22:20:46 +01:00
parent e2461ab475
commit bc8358cd97
2 changed files with 12 additions and 1 deletions

View File

@@ -149,7 +149,10 @@ def parse(file):
payer = {
'name': transaction_details.get('accountholder', ''),
# In reality, these fields are sometimes IBANs and BICs, and sometimes legacy numbers. We don't
# really know (except for a syntax check) which will be performed anyways much later in the stack.
'iban': transaction_details.get('accountnumber', ''),
'bic': transaction_details.get('blz', ''),
}
reference, eref = join_reference(transaction_details.get('reference', '').split('\n'), payer)
if not eref: