Skip to content

Commit

Permalink
[IMP] account_bank_statement_import_camt: parse additional information
Browse files Browse the repository at this point in the history
- A Danish (Sydbank) bank is setting the additional information in <NtryDtls><TxDtls><BkTxCd><Prtry><Cd> node
  This commits takes this in the narration field.
  • Loading branch information
davidwul authored and ecino committed Oct 26, 2023
1 parent 8800b33 commit 7cd0546
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions account_statement_import_camt/models/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ def parse_transaction_details(self, ns, node, transaction):
"%s (RmtInf/Strd/CdtrRefInf/Ref)" % _("Structured Reference"),
join_str=" ",
)
self.add_value_from_node(
ns,
node,
["./ns:BkTxCd/ns:Prtry/ns:Cd"],
transaction["narration"],
"%s (BkTxCd/Prtry/Cd)" % _("Additional Information"),
join_str=" ",
)
self.add_value_from_node(
ns,
node,
Expand Down

0 comments on commit 7cd0546

Please sign in to comment.