mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
remove unused parameter
This commit is contained in:
@@ -64,7 +64,7 @@ function loadTransactionList(state, settingsStore, exchangeRatesStore, { transac
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!currentMonthList || currentMonthList.year !== transactionYear || currentMonthList.month !== transactionMonth) {
|
if (!currentMonthList || currentMonthList.year !== transactionYear || currentMonthList.month !== transactionMonth) {
|
||||||
calculateMonthTotalAmount(state, exchangeRatesStore, currentMonthList, defaultCurrency, state.transactionsFilter.accountIds, false);
|
calculateMonthTotalAmount(exchangeRatesStore, currentMonthList, defaultCurrency, state.transactionsFilter.accountIds, false);
|
||||||
|
|
||||||
state.transactions.push({
|
state.transactions.push({
|
||||||
year: transactionYear,
|
year: transactionYear,
|
||||||
@@ -79,14 +79,14 @@ function loadTransactionList(state, settingsStore, exchangeRatesStore, { transac
|
|||||||
}
|
}
|
||||||
|
|
||||||
currentMonthList.items.push(Object.freeze(item));
|
currentMonthList.items.push(Object.freeze(item));
|
||||||
calculateMonthTotalAmount(state, exchangeRatesStore, currentMonthList, defaultCurrency, state.transactionsFilter.accountIds, true);
|
calculateMonthTotalAmount(exchangeRatesStore, currentMonthList, defaultCurrency, state.transactionsFilter.accountIds, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transactions.nextTimeSequenceId) {
|
if (transactions.nextTimeSequenceId) {
|
||||||
state.transactionsNextTimeId = transactions.nextTimeSequenceId;
|
state.transactionsNextTimeId = transactions.nextTimeSequenceId;
|
||||||
} else {
|
} else {
|
||||||
calculateMonthTotalAmount(state, exchangeRatesStore, state.transactions[state.transactions.length - 1], defaultCurrency, state.transactionsFilter.accountIds, false);
|
calculateMonthTotalAmount(exchangeRatesStore, state.transactions[state.transactions.length - 1], defaultCurrency, state.transactionsFilter.accountIds, false);
|
||||||
state.transactionsNextTimeId = -1;
|
state.transactionsNextTimeId = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -129,7 +129,7 @@ function updateTransactionInTransactionList(state, settingsStore, exchangeRatesS
|
|||||||
if (transactionMonthList.items.length < 1) {
|
if (transactionMonthList.items.length < 1) {
|
||||||
state.transactions.splice(i, 1);
|
state.transactions.splice(i, 1);
|
||||||
} else {
|
} else {
|
||||||
calculateMonthTotalAmount(state, exchangeRatesStore, transactionMonthList, defaultCurrency, state.transactionsFilter.accountIds, i >= state.transactions.length - 1 && state.transactionsNextTimeId > 0);
|
calculateMonthTotalAmount(exchangeRatesStore, transactionMonthList, defaultCurrency, state.transactionsFilter.accountIds, i >= state.transactions.length - 1 && state.transactionsNextTimeId > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -157,12 +157,12 @@ function removeTransactionFromTransactionList(state, exchangeRatesStore, { trans
|
|||||||
if (transactionMonthList.items.length < 1) {
|
if (transactionMonthList.items.length < 1) {
|
||||||
state.transactions.splice(i, 1);
|
state.transactions.splice(i, 1);
|
||||||
} else {
|
} else {
|
||||||
calculateMonthTotalAmount(state, exchangeRatesStore, transactionMonthList, defaultCurrency, state.transactionsFilter.accountIds, i >= state.transactions.length - 1 && state.transactionsNextTimeId > 0);
|
calculateMonthTotalAmount(exchangeRatesStore, transactionMonthList, defaultCurrency, state.transactionsFilter.accountIds, i >= state.transactions.length - 1 && state.transactionsNextTimeId > 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function calculateMonthTotalAmount(state, exchangeRatesStore, transactionMonthList, defaultCurrency, accountIds, incomplete) {
|
function calculateMonthTotalAmount(exchangeRatesStore, transactionMonthList, defaultCurrency, accountIds, incomplete) {
|
||||||
if (!transactionMonthList) {
|
if (!transactionMonthList) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user