mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[10.0][FIX] Fix CAMT import without NTRY
This commit is contained in:
committed by
Holger Brunn
parent
3a9c99469d
commit
b53c4159f5
@@ -183,10 +183,12 @@ class CamtParser(models.AbstractModel):
|
||||
for entry_node in entry_nodes:
|
||||
transactions.extend(self.parse_entry(ns, entry_node))
|
||||
result['transactions'] = transactions
|
||||
result['date'] = sorted(transactions,
|
||||
key=lambda x: x['date'],
|
||||
reverse=True
|
||||
)[0]['date']
|
||||
result['date'] = None
|
||||
if transactions:
|
||||
result['date'] = sorted(transactions,
|
||||
key=lambda x: x['date'],
|
||||
reverse=True
|
||||
)[0]['date']
|
||||
return result
|
||||
|
||||
def check_version(self, ns, root):
|
||||
|
||||
Reference in New Issue
Block a user