File tree Expand file tree Collapse file tree
app/src/main/java/org/gnucash/android/db/adapter Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments