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=925e05eb3fd95ef3ddd64efd83c3b654ead3c0b7;hp=9d417955dbe259040f54995d9441edb791ddfea3;hb=217da55a224e2ae899d0b50604e2e54f882ec04f;hpb=1ad7a3b131b2510bcb9a515dafe6a08765bd6100 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 9d417955..925e05eb 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java @@ -1,5 +1,5 @@ /* - * Copyright © 2019 Damyan Ivanov. + * Copyright © 2020 Damyan Ivanov. * This file is part of MoLe. * MoLe is free software: you can distribute it and/or modify it * under the term of the GNU General Public License as published by @@ -293,11 +293,12 @@ public final class MobileLedgerProfile { new Object[]{uuid, tr.getId()}); 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.getComment(), tr.getDataHash() + "INSERT INTO transactions(profile, id, year, month, day, description, "+ + "comment, data_hash, keep) " + + "values(?,?,?,?,?,?,?,?,1)", + new Object[]{uuid, tr.getId(), tr.getDate().year, tr.getDate().month, + tr.getDate().day, tr.getDescription(), + tr.getComment(), tr.getDataHash() }); for (LedgerTransactionAccount item : tr.getAccounts()) {