mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 03:32:54 -05:00
🐛 (reports) fix incorrect cashflow balance (#1518)
* 🐛 (reports) fix incorrect cashflow balance
Fixing a small typo here where multiple transfers across different payees on the same day fail to be summed up resulting in significant balance errors.
* release notes
* Update 1518.md
This commit is contained in:
@@ -25,8 +25,8 @@ export function indexCashFlow(data, date, isTransfer) {
|
||||
const results = {};
|
||||
data.forEach(item => {
|
||||
let findExisting = results[item.date]
|
||||
? results[item.date][item.xfer]
|
||||
? results[item.date][item.xfer]
|
||||
? results[item.date][item.isTransfer]
|
||||
? results[item.date][item.isTransfer]
|
||||
: 0
|
||||
: 0;
|
||||
let result = { [item[isTransfer]]: item.amount + findExisting };
|
||||
|
||||
6
upcoming-release-notes/1518.md
Normal file
6
upcoming-release-notes/1518.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [martinfrench92]
|
||||
---
|
||||
|
||||
Fix incorrect cashflow balance
|
||||
Reference in New Issue
Block a user