]> git.ktnx.net Git - mobile-ledger.git/commitdiff
empty amounts for newly created templates
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 13 Feb 2021 08:27:41 +0000 (10:27 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 18 Feb 2021 07:19:43 +0000 (07:19 +0000)
were using '0.00'

app/src/main/java/net/ktnx/mobileledger/model/TemplateDetailsItem.java

index 719922769b902c9c773b5f185849773aec2c6c0f..1f3211c4c797de00091ada0403b0a31b0bcb3c49 100644 (file)
@@ -275,7 +275,7 @@ abstract public class TemplateDetailsItem {
         private final PossiblyMatchedValue<String> accountComment =
                 PossiblyMatchedValue.withLiteralString("");
         private final PossiblyMatchedValue<Float> amount =
-                PossiblyMatchedValue.withLiteralFloat(0f);
+                PossiblyMatchedValue.withLiteralFloat(null);
         private final PossiblyMatchedValue<Currency> currency = new PossiblyMatchedValue<>();
         private boolean negateAmount;
         private AccountRow() {