Skip to content

Commit

Permalink
Fix issue with Monthly Spending report not properly averaging previou…
Browse files Browse the repository at this point in the history
…s three months (#3723)

* Fix issue with Monthly Spending report not properly summing previous three months

* release notes

---------

Co-authored-by: Joel Rich <[email protected]>
  • Loading branch information
joel-rich and Joel Rich authored Oct 25, 2024
1 parent 4b06345 commit 5751d5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ export function createSpendingSpreadsheet({
}
return null;
});
if (month.month >= startDate && month.month < compare) {

if (
month.month >= monthUtils.monthFromDate(startDate) &&
month.month < compare
) {
if (day === '28') {
if (monthUtils.getMonthEnd(intervalItem) === intervalItem) {
averageSum += cumulativeAssets + cumulativeDebts;
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/3723.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [joel-rich]
---

Fix issue with Monthly Spending report not properly averaging previous three months

0 comments on commit 5751d5d

Please sign in to comment.