From: Damyan Ivanov Date: Sat, 13 Feb 2021 08:27:41 +0000 (+0200) Subject: empty amounts for newly created templates X-Git-Tag: v0.17.0~142 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=59ecc8c74f590acdc069f3816312c5febb62a13b;p=mobile-ledger.git empty amounts for newly created templates were using '0.00' --- diff --git a/app/src/main/java/net/ktnx/mobileledger/model/TemplateDetailsItem.java b/app/src/main/java/net/ktnx/mobileledger/model/TemplateDetailsItem.java index 71992276..1f3211c4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/TemplateDetailsItem.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/TemplateDetailsItem.java @@ -275,7 +275,7 @@ abstract public class TemplateDetailsItem { private final PossiblyMatchedValue accountComment = PossiblyMatchedValue.withLiteralString(""); private final PossiblyMatchedValue amount = - PossiblyMatchedValue.withLiteralFloat(0f); + PossiblyMatchedValue.withLiteralFloat(null); private final PossiblyMatchedValue currency = new PossiblyMatchedValue<>(); private boolean negateAmount; private AccountRow() {