Skip to content

Commit

Permalink
Merge PR #140 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by robinkeunen
  • Loading branch information
OCA-git-bot committed Nov 7, 2023
2 parents 80ef467 + 621a8a9 commit 2533f57
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2533f57

Please sign in to comment.