[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 11/11: Fix amount format.
From: |
gnunet |
Subject: |
[libeufin] 11/11: Fix amount format. |
Date: |
Thu, 30 Apr 2020 21:46:54 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
commit 96b5026a26fafea09d738de1814205db4b341992
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Apr 30 18:57:41 2020 +0200
Fix amount format.
---
nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 1 +
sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 460b4c2..e0ae928 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -702,6 +702,7 @@ fun main() {
* at all.
*/
response.orderData.unzipWithLambda {
+ logger.debug("C53 entry: ${it.second}")
val fileName = it.first
val camt53doc =
XMLUtil.parseStringIntoDom(it.second)
transaction {
diff --git
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index cad50ff..b0348a7 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -452,7 +452,6 @@ private fun handleCct(paymentRequest: String,
ebicsSubscriber: EbicsSubscriberEn
val creditorIban =
painDoc.pickString("//*[local-name()='CdtrAcct']//*[local-name()='IBAN']")
val debitorIban =
painDoc.pickString("//*[local-name()='DbtrAcct']//*[local-name()='IBAN']")
val subject = painDoc.pickString("//*[local-name()='Ustrd']")
- val currency = painDoc.pickString("//*[local-name()='InstdAmt']/@ccy")
val amount = painDoc.pickString("//*[local-name()='InstdAmt']")
transaction {
@@ -460,7 +459,7 @@ private fun handleCct(paymentRequest: String,
ebicsSubscriber: EbicsSubscriberEn
this.creditorIban = creditorIban
this.debitorIban = debitorIban
this.subject = subject
- this.amount = "${currency}:${amount}"
+ this.amount = amount
this.ebicsSubscriber = ebicsSubscriber
this.date = DateTime.now().millis
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [libeufin] branch master updated (9cd5454 -> 96b5026), gnunet, 2020/04/30
- [libeufin] 04/11: Integration test., gnunet, 2020/04/30
- [libeufin] 01/11: Sandbox admin., gnunet, 2020/04/30
- [libeufin] 03/11: fix db problem in test, gnunet, 2020/04/30
- [libeufin] 02/11: HTD response content comes from DB now., gnunet, 2020/04/30
- [libeufin] 06/11: Integration test., gnunet, 2020/04/30
- [libeufin] 07/11: Fix CCT handling., gnunet, 2020/04/30
- [libeufin] 09/11: fix time parser, gnunet, 2020/04/30
- [libeufin] 11/11: Fix amount format.,
gnunet <=
- [libeufin] 05/11: Reducing code., gnunet, 2020/04/30
- [libeufin] 10/11: Move more generic helpers to util package., gnunet, 2020/04/30
- [libeufin] 08/11: Integration test., gnunet, 2020/04/30