mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[IMP] account_statement_import_camt: look for currency under Ntry
Encountered in a Camt.054 statement: currency listed under /BkToCstmrDbtCdtNtfctn/Ntfctn/Ntry/Amt/@Ccy
This commit is contained in:
@@ -204,7 +204,15 @@ class CamtParser(models.AbstractModel):
|
||||
)
|
||||
self.add_value_from_node(ns, node, "./ns:Id", result, "name")
|
||||
self.add_value_from_node(
|
||||
ns, node, ["./ns:Acct/ns:Ccy", "./ns:Bal/ns:Amt/@Ccy"], result, "currency"
|
||||
ns,
|
||||
node,
|
||||
[
|
||||
"./ns:Acct/ns:Ccy",
|
||||
"./ns:Bal/ns:Amt/@Ccy",
|
||||
"./ns:Ntry/ns:Amt/@Ccy",
|
||||
],
|
||||
result,
|
||||
"currency",
|
||||
)
|
||||
result["balance_start"], result["balance_end_real"] = self.get_balance_amounts(
|
||||
ns, node
|
||||
|
||||
Reference in New Issue
Block a user