[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: temporarily workaround negative balanc
From: |
gnunet |
Subject: |
[libeufin] branch master updated: temporarily workaround negative balances (sandbox) |
Date: |
Thu, 29 Jul 2021 11:45:13 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 7ac89d0 temporarily workaround negative balances (sandbox)
7ac89d0 is described below
commit 7ac89d0902fc74bed9536e177c12b1e0a253d0ad
Author: ms <ms@taler.net>
AuthorDate: Thu Jul 29 11:44:27 2021 +0200
temporarily workaround negative balances (sandbox)
see #6962
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
index 49e6988..84c3008 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
@@ -30,6 +30,12 @@ fun balanceForAccount(iban: String): java.math.BigDecimal {
balance -= amount
}
}
+ /**
+ * FIXME: for negative accounts, temporarily return 0, so as to make
+ * the current CAMT generator happy. Negative amounts need to have their
+ * onw sub-tree in the report, see bug: #6962
+ */
+ if (balance < java.math.BigDecimal.ZERO) return java.math.BigDecimal.ZERO
return balance
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: temporarily workaround negative balances (sandbox),
gnunet <=