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

Intervals are always aligned with start of week, month, quarter or year #2304

Open
Ian2020 opened this issue Nov 29, 2023 · 0 comments · May be fixed by #2305
Open

Intervals are always aligned with start of week, month, quarter or year #2304

Ian2020 opened this issue Nov 29, 2023 · 0 comments · May be fixed by #2305

Comments

@Ian2020
Copy link

Ian2020 commented Nov 29, 2023

There is no way for the user to change the alignment of all intervals when requesting a report. For example, given the following two commands:

> test reg -p "monthly"
08-Jan-01 - 08-Jan-31            Assets:Cash                   $-40.00       $-40.00
                                 Expenses:Books                 $20.00       $-20.00
                                 Liabilities:Cards              $20.00             0
08-Feb-01 - 08-Feb-29            Assets:Cash                   $-80.00       $-80.00
                                 Expenses:Books                 $40.00       $-40.00
                                 Liabilities:Cards              $40.00             0
> test reg -p "monthly from 2008/01/15"
08-Jan-15 - 08-Jan-31            Assets:Cash                   $-20.00       $-20.00
                                 Expenses:Books                 $10.00       $-10.00
                                 Liabilities:Cards              $10.00             0
08-Feb-01 - 08-Feb-29            Assets:Cash                   $-80.00       $-80.00
                                 Expenses:Books                 $40.00       $-40.00
                                 Liabilities:Cards              $40.00             0

In the second example we specify a begin time in the period expression but it effects the first interval only (Jan).

I am in the UK and our tax year starts on 6th April. It would be very nice to be able to report monthly and yearly from this date across a wide time range.

The issue has been mentioned before but not actually addressed I believe:

There's also mention in the forums of an old bug 532 that's been archived:

And some more discussions that didn't result in any changes:

I'd be very keen to get this ability in ledger.

@Ian2020 Ian2020 linked a pull request Nov 29, 2023 that will close this issue
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 a pull request may close this issue.

1 participant