Skip to content

Commit a37f346

Browse files
committed
Update SQL statement in comment with the actual statement
1 parent a6f550f commit a37f346

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/src/main/java/org/gnucash/android/db/adapter/DatabaseAdapter.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,11 @@ private void createTempView() {
160160
// ( CASE WHEN IFNULL ( splits_memo , '' ) == '' THEN 'a' ELSE 'b' END ) || accounts_uid
161161
// ) ,
162162
// 2
163-
// ) as trans_acct_a_uid ,
164-
// TOTAL ( CASE WHEN splits_type = 'DEBIT' THEN splits_amount ELSE - splits_amount END ) AS trans_acct_balance,
165-
// COUNT ( DISTINCT accounts_currency ) as trans_currency_count
163+
// ) AS trans_acct_a_uid ,
164+
// TOTAL ( CASE WHEN splits_type = 'DEBIT' THEN splits_value_num
165+
// ELSE - splits_value_num END ) * 1.0 / splits_value_denom AS trans_acct_balance ,
166+
// COUNT ( DISTINCT accounts_currency_code ) AS trans_currency_count ,
167+
// COUNT (*) AS trans_split_count
166168
// FROM trans_split_acct GROUP BY transactions_uid
167169
//
168170
// This temporary view would pick one Account_UID for each

0 commit comments

Comments
 (0)