From 59ecc8c74f590acdc069f3816312c5febb62a13b Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 13 Feb 2021 10:27:41 +0200 Subject: [PATCH] empty amounts for newly created templates were using '0.00' --- .../java/net/ktnx/mobileledger/model/TemplateDetailsItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.39.5