Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix postings report averaging #1003

Closed
wants to merge 2 commits into from

Conversation

Projects
None yet
2 participants
@Cat-Ion
Copy link

commented Apr 6, 2019

reg -A was calculating incorrect averages. This patch should fix that.

Before (reg -f test.txt income -A):

2018/10/15 Test         income             EUR 1         EUR 1
2018/10/16 Test         income             EUR 1             0
2018/10/17 Test         income             EUR 1         EUR 1
2018/10/18 Test         income             EUR 1             0

After:

2018/10/15 Test         income             EUR 1         EUR 1
2018/10/16 Test         income             EUR 1         EUR 1
2018/10/17 Test         income             EUR 1         EUR 1
2018/10/18 Test         income             EUR 1         EUR 1

simonmichael added a commit that referenced this pull request Apr 6, 2019

@simonmichael

This comment has been minimized.

Copy link
Owner

commented Apr 6, 2019

Thank you very much! I have fixed my bad refactoring added in hledger-1.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.