Browse Source

[ENH] Make sure message is filled for camt.

Message was not taken from AddtlNtryInf element, if not part of details.

Not sure wether it actually can be part of details (NtryDtls element), but this change least intrusive.
pull/39/head
Ronald Portier (Therp BV) 9 years ago
parent
commit
59dd01d38b
  1. 3
      account_bank_statement_import_camt/camt.py

3
account_bank_statement_import_camt/camt.py

@ -134,6 +134,9 @@ class CamtParser(object):
'./ns:NtryDtls/ns:TxDtls', namespaces={'ns': ns}) './ns:NtryDtls/ns:TxDtls', namespaces={'ns': ns})
if details_node: if details_node:
self.parse_transaction_details(ns, details_node[0], transaction) self.parse_transaction_details(ns, details_node[0], transaction)
if not transaction.message:
self.add_value_from_node(
ns, node, './ns:AddtlNtryInf', transaction, 'message')
transaction.data = etree.tostring(node) transaction.data = etree.tostring(node)
return transaction return transaction

Loading…
Cancel
Save