X-Git-Url: https://git.ktnx.net/?p=mobile-ledger-staging.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fmodel%2FMobileLedgerProfile.java;h=9d417955dbe259040f54995d9441edb791ddfea3;hp=b31ddef396741d50971c2716de52a6e4ab4a5d81;hb=d385bacc411bc15cfd8fcaa1a3419b3cb24235d1;hpb=4b22cf80c51f475d28d4779975effb9882aa3a6e diff --git a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java index b31ddef3..9d417955 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java @@ -292,10 +292,12 @@ public final class MobileLedgerProfile { db.execSQL("DELETE from transaction_accounts WHERE profile = ? and transaction_id=?", new Object[]{uuid, tr.getId()}); - db.execSQL("INSERT INTO transactions(profile, id, date, description, data_hash, keep) " + - "values(?,?,?,?,?,1)", + db.execSQL( + "INSERT INTO transactions(profile, id, date, description, comment, data_hash, " + + "keep) " + + "values(?,?,?,?,?,?,1)", new Object[]{uuid, tr.getId(), Globals.formatLedgerDate(tr.getDate()), - tr.getDescription(), tr.getDataHash() + tr.getDescription(), tr.getComment(), tr.getDataHash() }); for (LedgerTransactionAccount item : tr.getAccounts()) {