]> git.ktnx.net Git - mobile-ledger.git/commitdiff
include posting comment in transaction hash
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 23 Jan 2020 19:47:36 +0000 (21:47 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 23 Jan 2020 19:47:36 +0000 (21:47 +0200)
so that changes in comment at the source reaches the DB

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

index 24527892d580306b51af1eeeb19f8161935f54ac..9df2b7e220ce7df6d63c6816002bedd34c5d4b88 100644 (file)
@@ -129,6 +129,8 @@ public class LedgerTransaction {
                 data.append(item.getCurrency());
                 data.append('\0');
                 data.append(item.getAmount());
+                data.append('\0');
+                data.append(item.getComment());
             }
             sha.update(data.toString()
                            .getBytes(Charset.forName("UTF-8")));