mt940: also consider non-SWIFT field NS

This commit is contained in:
Claudio Luck
2017-05-26 00:55:52 +02:00
committed by Raphael Michel
parent 3c762adbf4
commit e44f34f0a9

View File

@@ -20,7 +20,7 @@ def parse(file):
result.append({
'reference': "\n".join([
t.data.get(f) for f in ('transaction_details', 'customer_reference', 'bank_reference',
'extra_details') if t.data.get(f, '')]),
'extra_details', 'non_swift_text') if t.data.get(f, '')]),
'amount': str(round_decimal(t.data['amount'].amount)),
'date': t.data['date'].isoformat()
})