Browse Source

[ENH] Might need info in camt import from PmtInfId element.

pull/51/head
Ronald Portier (Therp BV) 9 years ago
parent
commit
8ecee97c28
  1. 7
      account_bank_statement_import_camt/camt.py

7
account_bank_statement_import_camt/camt.py

@ -137,6 +137,13 @@ class CamtParser(object):
if not transaction.message: if not transaction.message:
self.add_value_from_node( self.add_value_from_node(
ns, node, './ns:AddtlNtryInf', transaction, 'message') ns, node, './ns:AddtlNtryInf', transaction, 'message')
if not transaction.eref:
self.add_value_from_node(
ns, node, [
'./ns:NtryDtls/ns:Btch/ns:PmtInfId',
],
transaction, 'eref'
)
transaction.data = etree.tostring(node) transaction.data = etree.tostring(node)
return transaction return transaction

Loading…
Cancel
Save