Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[balsheet-pnl] unrealized-gain calculator bugfix
The unrealized-gain calculator was flawed. The fixed function is copied from balance-sheet.scm and adapted to balsheet-pnl.scm vars. This fixed function matches unrealized-gains amounts from balance-sheet.scm
- Loading branch information
1 parent
0ecfc91
commit f779b81
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f779b81
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note the calculation of asset-liability-basis calls, for each relevant account,
gnc:account-get-comm-value-at-date
, which is rather expensive. It could be optimised, but would require a chunk of code. I'll await to see if any complaints.