diff options
author | MS <ms@taler.net> | 2020-05-14 21:25:24 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2020-05-14 21:25:24 +0200 |
commit | 0698acd55d400bbc1da2eff9b3fa8491bf55e2fc (patch) | |
tree | e7a537d014eab87786dbc63ce634900a28621590 /nexus/src/main | |
parent | dee6d7b62215972e958a8a5e03242d11e22117b9 (diff) | |
download | libeufin-0698acd55d400bbc1da2eff9b3fa8491bf55e2fc.tar.gz libeufin-0698acd55d400bbc1da2eff9b3fa8491bf55e2fc.tar.bz2 libeufin-0698acd55d400bbc1da2eff9b3fa8491bf55e2fc.zip |
Fix XPath.
Diffstat (limited to 'nexus/src/main')
-rw-r--r-- | nexus/src/main/kotlin/tech/libeufin/nexus/Helpers.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Helpers.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Helpers.kt index 5523af17..cd54e813 100644 --- a/nexus/src/main/kotlin/tech/libeufin/nexus/Helpers.kt +++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Helpers.kt @@ -195,7 +195,10 @@ suspend fun downloadAndPersistC5xEbics( val camt53doc = XMLUtil.parseStringIntoDom(it.second) transaction { RawBankTransactionEntity.new { - bankAccount = getBankAccountFromIban(camt53doc.pickString("//*[local-name()='Stmt']/Acct/Id/IBAN")) + bankAccount = getBankAccountFromIban( + camt53doc.pickString( + "//*[local-name()='Stmt']/*[local-name()='Acct']/*[local-name()='Id']/*[local-name()='IBAN']") + ) sourceFileName = fileName unstructuredRemittanceInformation = camt53doc.pickString("//*[local-name()='Ntry']//*[local-name()='Ustrd']") transactionType = camt53doc.pickString("//*[local-name()='Ntry']//*[local-name()='CdtDbtInd']") |