Commit c1a3c80b authored by Thomasa Balthazar's avatar Thomasa Balthazar
Browse files

Only consider the 16 first chars of bank_id

parent f502067a
......@@ -32,7 +32,7 @@ def handle_recordbank_csv(csv_file):
with transaction.atomic():
for entry in csv.DictReader(StringIO("\r\n".join(csv_file.read().split("\n")[1:]) + "\r\n"), delimiter=";"):
bank_id = fr_or_nl(entry, "Ref. v/d verrichting")[:-1]
bank_id = fr_or_nl(entry, "Ref. v/d verrichting")[0:16]
movement = Movement()
movement.bank_id = bank_id
movement.date = datetime.strptime(fr_or_nl(entry, "Datum v. verrichting"), "%d-%m-%Y").date()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment