mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
don't calculate account balance which account is hidden
This commit is contained in:
@@ -98,6 +98,10 @@ function getAllFilteredAccountsBalance(categorizedAccounts, accountCategoryFilte
|
|||||||
for (let accountIdx = 0; accountIdx < categorizedAccounts[accountCategory.id].length; accountIdx++) {
|
for (let accountIdx = 0; accountIdx < categorizedAccounts[accountCategory.id].length; accountIdx++) {
|
||||||
const account = categorizedAccounts[accountCategory.id][accountIdx];
|
const account = categorizedAccounts[accountCategory.id][accountIdx];
|
||||||
|
|
||||||
|
if (account.hidden) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (account.type === accountConstants.allAccountTypes.SingleAccount) {
|
if (account.type === accountConstants.allAccountTypes.SingleAccount) {
|
||||||
ret.push({
|
ret.push({
|
||||||
balance: account.balance,
|
balance: account.balance,
|
||||||
|
|||||||
Reference in New Issue
Block a user