diff --git a/account_statement_import_coda/wizard/account_statement_import_coda.py b/account_statement_import_coda/wizard/account_statement_import_coda.py index 257552213..23620040e 100644 --- a/account_statement_import_coda/wizard/account_statement_import_coda.py +++ b/account_statement_import_coda/wizard/account_statement_import_coda.py @@ -116,10 +116,10 @@ def get_st_vals(self, statement): if st.type == MovementRecordType.GLOBALISATION } information_dict = {} - # build a dict of information by transaction_ref. The transaction_ref - # refers to the transaction_ref of a movement record + # build a dict of information by ref_move. The ref_move + # refers to the ref_move of a movement record for info_line in statement.informations: - infos = information_dict.setdefault(info_line.transaction_ref, []) + infos = information_dict.setdefault(info_line.ref_move, []) infos.append(info_line) for sequence, line in enumerate( @@ -151,7 +151,7 @@ def get_st_line_note(self, line, information_dict): note.append(_("Counter Party Account") + ": " + line.counterparty_number) if line.counterparty_address: note.append(_("Counter Party Address") + ": " + line.counterparty_address) - infos = information_dict.get(line.transaction_ref, []) + infos = information_dict.get(line.ref_move, []) if line.communication or infos: communications = [] if line.communication: