summaryrefslogtreecommitdiff
path: root/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-11-13 10:23:17 +0100
committerms <ms@taler.net>2021-11-13 10:23:17 +0100
commitc384fd4a41146ca6e5a0a3f4c3eb06b96d9f0dbe (patch)
tree4640c59baef3eec8fef97d9c078637a03ded37de /sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
parent1c58a511f1e13db3b9267706e1937d4757349a1f (diff)
downloadlibeufin-c384fd4a41146ca6e5a0a3f4c3eb06b96d9f0dbe.tar.gz
libeufin-c384fd4a41146ca6e5a0a3f4c3eb06b96d9f0dbe.tar.bz2
libeufin-c384fd4a41146ca6e5a0a3f4c3eb06b96d9f0dbe.zip
Fixes after wallet harness tests.
- Implement sign-up bonus - Do communicate debit balances
Diffstat (limited to 'sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt')
-rw-r--r--sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt6
1 files changed, 0 insertions, 6 deletions
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
index b775bac2..873371d0 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
@@ -54,12 +54,6 @@ fun balanceForAccount(bankAccount: BankAccountEntity): 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 < BigDecimal.ZERO) return BigDecimal.ZERO
return balance
}