mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
fix inaccurate net payment/deposit calculations (#6675)
* fix net calculations * note
This commit is contained in:
@@ -222,18 +222,12 @@ export function createCustomSpreadsheet({
|
||||
|
||||
stacked[item.name] = stackAmounts;
|
||||
|
||||
perIntervalNetAssets =
|
||||
netAmounts > 0
|
||||
? perIntervalNetAssets + netAmounts
|
||||
: perIntervalNetAssets;
|
||||
perIntervalNetDebts =
|
||||
netAmounts < 0
|
||||
? perIntervalNetDebts + netAmounts
|
||||
: perIntervalNetDebts;
|
||||
perIntervalTotals += netAmounts;
|
||||
|
||||
return null;
|
||||
});
|
||||
perIntervalNetAssets = perIntervalTotals > 0 ? perIntervalTotals : 0;
|
||||
perIntervalNetDebts = perIntervalTotals < 0 ? perIntervalTotals : 0;
|
||||
totalAssets += perIntervalAssets;
|
||||
totalDebts += perIntervalDebts;
|
||||
netAssets += perIntervalNetAssets;
|
||||
|
||||
6
upcoming-release-notes/6675.md
Normal file
6
upcoming-release-notes/6675.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [matt-fidd]
|
||||
---
|
||||
|
||||
Fix inaccuracies in net payment/deposit calculations
|
||||
Reference in New Issue
Block a user