Skip to content

Fix for holdings report#4

Merged
romamo merged 2 commits intoromamo:mainfrom
klaander:fix-holdings-report
Mar 2, 2026
Merged

Fix for holdings report#4
romamo merged 2 commits intoromamo:mainfrom
klaander:fix-holdings-report

Conversation

@klaander
Copy link
Contributor

@klaander klaander commented Mar 1, 2026

There was a bug when creating the holdings report which caused the
Value and Cost in the holdings report to show up as double compared
to what they should be. This happened if the positions were already
in the target currency (e.g. position in EUR, report in EUR).

The first commit adds a new unit test that triggers the bug (so will fail
without the fix) and the other commit is the actual (trivial) fix.

Copy link
Owner

@romamo romamo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, perfect bugfix.

@romamo romamo merged commit c9478c3 into romamo:main Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants