From 7c8f562543dce3a121ed7165b2bb866cfd9da3af Mon Sep 17 00:00:00 2001 From: MaysWind Date: Fri, 15 Jan 2021 01:21:46 +0800 Subject: [PATCH] total income and expense amount of month uses the currency of account when filter by account --- src/views/mobile/transactions/List.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/mobile/transactions/List.vue b/src/views/mobile/transactions/List.vue index b428cb67..4b064f15 100644 --- a/src/views/mobile/transactions/List.vue +++ b/src/views/mobile/transactions/List.vue @@ -385,6 +385,14 @@ export default { }, computed: { defaultCurrency() { + if (this.query.accountId && this.query.accountId !== '0') { + const account = this.allAccounts[this.query.accountId]; + + if (account && account.currency && account.currency !== this.$constants.currency.parentAccountCurrencyPlaceholder) { + return account.currency; + } + } + return this.$store.getters.currentUserDefaultCurrency || this.$t('default.currency'); }, query() {