mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
fix bug
This commit is contained in:
@@ -569,14 +569,14 @@ export default {
|
|||||||
for (let i = 0; i < transactionMonthList.items.length; i++) {
|
for (let i = 0; i < transactionMonthList.items.length; i++) {
|
||||||
const transaction = transactionMonthList.items[i];
|
const transaction = transactionMonthList.items[i];
|
||||||
|
|
||||||
if (!transaction.destinationAccount) {
|
if (!transaction.sourceAccount) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let amount = transaction.destinationAmount;
|
let amount = transaction.sourceAmount;
|
||||||
|
|
||||||
if (transaction.destinationAccount.currency !== this.defaultCurrency) {
|
if (transaction.sourceAccount.currency !== this.defaultCurrency) {
|
||||||
const balance = this.$exchangeRates.getOtherCurrencyAmount(amount, transaction.destinationAccount.currency, this.defaultCurrency);
|
const balance = this.$exchangeRates.getOtherCurrencyAmount(amount, transaction.sourceAccount.currency, this.defaultCurrency);
|
||||||
|
|
||||||
if (!this.$utilities.isNumber(balance)) {
|
if (!this.$utilities.isNumber(balance)) {
|
||||||
if (transaction.type === this.$constants.transaction.allTransactionTypes.Expense) {
|
if (transaction.type === this.$constants.transaction.allTransactionTypes.Expense) {
|
||||||
|
|||||||
Reference in New Issue
Block a user