From 1fd204fbd59c59032c67d8451b28307a2bf89e2f Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 25 Mar 2021 23:34:56 +0200 Subject: [PATCH] fix transaction account storage SQL --- .../java/net/ktnx/mobileledger/model/MobileLedgerProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 15be74b6..a7a6eeab 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java @@ -449,7 +449,7 @@ public final class MobileLedgerProfile { }); db.execSQL("INSERT INTO transaction_accounts(transaction_id, " + "order_no, account_name, amount, currency, comment, generation) " + - "select ?, ?, ?, ?, ?, ?, ?, ? WHERE (select changes() = 0)", + "select ?, ?, ?, ?, ?, ?, ? WHERE (select changes() = 0)", new Object[]{tr.getId(), accountOrderNo, item.getAccountName(), item.getAmount(), Misc.nullIsEmpty(item.getCurrency()), item.getComment(), generation -- 2.39.5