mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
total income and expense amount of month uses the currency of account when filter by account
This commit is contained in:
@@ -385,6 +385,14 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
defaultCurrency() {
|
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');
|
return this.$store.getters.currentUserDefaultCurrency || this.$t('default.currency');
|
||||||
},
|
},
|
||||||
query() {
|
query() {
|
||||||
|
|||||||
Reference in New Issue
Block a user