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

Option --cumulative for hledger aregister #2077

Open
thielema opened this issue Aug 27, 2023 · 5 comments
Open

Option --cumulative for hledger aregister #2077

thielema opened this issue Aug 27, 2023 · 5 comments
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. aregister

Comments

@thielema
Copy link
Contributor

I like to have support for a cumulative running total additional to the standard historical running total in aregister.

See https://groups.google.com/d/msgid/hledger/0F2587EB-DF9A-4CE7-9A95-3C13B8042589%40joyful.com .

@thielema thielema added the A-WISH Some kind of improvement request, hare-brained proposal, or plea. label Aug 27, 2023
@thielema
Copy link
Contributor Author

I thought it would be an easy addition since Aregister.hs already contains out-commented cumulative and historical options and Register.hs already supports cumulative totals. However, after adding the options they are still ignored.
Additionally I do not understand how Register.hs sets cumulative as default, because it mentions cumulative only in the flag section of Register.registermode and nowhere else and def :: BalanceAccumulation is defined as PerPeriod.
I can change the line in aregister.ropts' to balanceaccum_= Cumulative and get cumulative totals. Thus it seems to work in principle, but somehow the option cumulative is not translated to Cumulative, although balanceAccumulationOverride says how to do it.

@simonmichael
Copy link
Owner

simonmichael commented Aug 28, 2023 via email

@simonmichael
Copy link
Owner

I found this old PR of yours. Is it still a feature that's needed / worth the effort ?

@simonmichael
Copy link
Owner

Excuse me, not a PR but rather a discussion issue.

@thielema
Copy link
Contributor Author

thielema commented Sep 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. aregister
Projects
None yet
Development

No branches or pull requests

2 participants