From 8ecee97c282f98ed651d62d5d11a6260120ae9c1 Mon Sep 17 00:00:00 2001 From: "Ronald Portier (Therp BV)" Date: Mon, 14 Dec 2015 01:19:24 +0100 Subject: [PATCH 1/2] [ENH] Might need info in camt import from PmtInfId element. --- account_bank_statement_import_camt/camt.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/account_bank_statement_import_camt/camt.py b/account_bank_statement_import_camt/camt.py index 96e7a51..b6d3489 100644 --- a/account_bank_statement_import_camt/camt.py +++ b/account_bank_statement_import_camt/camt.py @@ -137,6 +137,13 @@ class CamtParser(object): if not transaction.message: self.add_value_from_node( 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) return transaction From 4d7f940133ddefa7de0767a0cdfd041146580fd5 Mon Sep 17 00:00:00 2001 From: "Ronald Portier (Therp BV)" Date: Thu, 7 Jan 2016 17:28:03 +0100 Subject: [PATCH 2/2] [FIX] Correct indentation in camt.py. --- account_bank_statement_import_camt/camt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_bank_statement_import_camt/camt.py b/account_bank_statement_import_camt/camt.py index b6d3489..6506af5 100644 --- a/account_bank_statement_import_camt/camt.py +++ b/account_bank_statement_import_camt/camt.py @@ -143,7 +143,7 @@ class CamtParser(object): './ns:NtryDtls/ns:Btch/ns:PmtInfId', ], transaction, 'eref' - ) + ) transaction.data = etree.tostring(node) return transaction