Skip to content
Snippets Groups Projects
Unverified Commit 094f0b8a authored by Neil's avatar Neil Committed by GitHub
Browse files

Spending Report: filter out offbudget items (#2840)

* filter out offBudget

* notes
parent b89a3202
No related branches found
No related tags found
No related merge requests found
......@@ -102,13 +102,13 @@ export function createSpendingSpreadsheet({
day === offsetDay
) {
const intervalAssets = assets
.filter(e => !e.categoryIncome)
.filter(e => !e.categoryIncome && !e.accountOffBudget)
.filter(asset => asset.date === intervalItem)
.reduce((a, v) => (a = a + v.amount), 0);
perIntervalAssets += intervalAssets;
const intervalDebts = debts
.filter(e => !e.categoryIncome)
.filter(e => !e.categoryIncome && !e.accountOffBudget)
.filter(debt => debt.date === intervalItem)
.reduce((a, v) => (a = a + v.amount), 0);
perIntervalDebts += intervalDebts;
......
---
category: Bugfix
authors: [carkom]
---
Filters off budget items out of the spending report.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment