Skip to content

Commit

Permalink
special case for Ntrys without TxDtls
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Bettens committed Jun 29, 2017
1 parent 7bfdfa4 commit 7bc64b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions account_bank_statement_import_camt/models/parser.py
Expand Up @@ -141,6 +141,9 @@ def parse_entry(self, ns, node):

details_nodes = node.xpath(
'./ns:NtryDtls/ns:TxDtls', namespaces={'ns': ns})
if len(details_nodes) == 0:
yield transaction
return
transaction_base = transaction
for node in details_nodes:
transaction = transaction_base.copy()
Expand Down

0 comments on commit 7bc64b9

Please sign in to comment.