Transaction: include transaction date in the hash
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 12 Jan 2019 18:52:33 +0000 (18:52 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 12 Jan 2019 18:52:33 +0000 (18:52 +0000)
!?

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

index 8e6f2bf..7b63a59 100644 (file)
@@ -102,6 +102,8 @@ public class LedgerTransaction {
             data.append('\0');
             data.append(getDescription());
             data.append('\0');
             data.append('\0');
             data.append(getDescription());
             data.append('\0');
+            data.append(Globals.formatLedgerDate(getDate()));
+            data.append('\0');
             for (LedgerTransactionAccount item : accounts) {
                 data.append(item.getAccountName());
                 data.append('\0');
             for (LedgerTransactionAccount item : accounts) {
                 data.append(item.getAccountName());
                 data.append('\0');