mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
Fix incorrect cumulative totals for Days 28+ on the Spending Report (#3679)
* Fix bug with spending report cumulative totals * release notes --------- Co-authored-by: Joel Rich <joelrich@protonmail.com>
This commit is contained in:
@@ -223,7 +223,7 @@ export function createSpendingSpreadsheet({
|
||||
return arr;
|
||||
}, []);
|
||||
const maxCumulative = data.reduce((a, b) =>
|
||||
a.cumulative < b.cumulative ? a : b,
|
||||
b.cumulative === null ? a : b,
|
||||
).cumulative;
|
||||
|
||||
const totalDaily = data.reduce((a, v) => (a = a + v.totalTotals), 0);
|
||||
|
||||
6
upcoming-release-notes/3679.md
Normal file
6
upcoming-release-notes/3679.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [joel-rich]
|
||||
---
|
||||
|
||||
Fix incorrect cumulative totals for Days 28+ on the Spending Report
|
||||
Reference in New Issue
Block a user