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

Add a 'fortnightly' frequency for budgets #1939

Open
JP-Ellis opened this issue Jan 5, 2025 · 0 comments · May be fixed by #1955
Open

Add a 'fortnightly' frequency for budgets #1939

JP-Ellis opened this issue Jan 5, 2025 · 0 comments · May be fixed by #1955

Comments

@JP-Ellis
Copy link

JP-Ellis commented Jan 5, 2025

Summary

I would love to see a fortnightly time interval for use within budgets.

Motivation

In Australia, it is quite common to have income and debits charged at a fortnightly (every 2 weeks) frequency. It would be really convenient if the budgets in Fava could support a fortnightly interval:

2024-07-01 custom "budget" Expenses:Health:Gym    "fortnightly" 29.00 AUD

Alternatives

Currently, I just do the conversion explicitly into a weekly amount, but it isn't quite as nice:

2024-07-01 custom "budget" Expenses:Health:Gym    "weekly" (29.00 / 2) AUD

Implementation

I would be happy to help contribute a PR if that is a change that would be welcome.

JP-Ellis added a commit to JP-Ellis/fava that referenced this issue Feb 4, 2025
In some countries (such as Australia), it is very common for wages to be
paid on a fortnightly basis, that is, every 2 weeks. As a result, a
number of other expenses are also paid on a fortnightly basis.

This commit extends the `Interval` enum by adding a `FORTNIGHT` option.
I have added a test for that, and have updated the translations where
possible (not that other than for English and French, the other
translations may be suboptimal).

Resolves: beancount#1939
Signed-off-by: JP-Ellis <[email protected]>
JP-Ellis added a commit to JP-Ellis/fava that referenced this issue Feb 4, 2025
In some countries (such as Australia), it is very common for wages to be
paid on a fortnightly basis, that is, every 2 weeks. As a result, a
number of other expenses are also paid on a fortnightly basis.

This commit extends the `Interval` enum by adding a `FORTNIGHT` option.
I have added a test for that, and have updated the translations where
possible (not that other than for English and French, the other
translations may be suboptimal).

Resolves: beancount#1939
Signed-off-by: JP-Ellis <[email protected]>
JP-Ellis added a commit to JP-Ellis/fava that referenced this issue Feb 4, 2025
In some countries (such as Australia), it is very common for wages to be
paid on a fortnightly basis, that is, every 2 weeks. As a result, a
number of other expenses are also paid on a fortnightly basis.

This commit extends the `Interval` enum by adding a `FORTNIGHT` option.
I have added a test for that, and have updated the translations where
possible (not that other than for English and French, the other
translations may be suboptimal).

As part of this commit, I have also taken the opportunity to fix some
errors with the use of ISO weeks. In particular, the year corresponding
to an ISO week is _not_ always the same as the calendar year of the
date.

Resolves: beancount#1939
Signed-off-by: JP-Ellis <[email protected]>
@JP-Ellis JP-Ellis linked a pull request Feb 4, 2025 that will close this issue
JP-Ellis added a commit to JP-Ellis/fava that referenced this issue Feb 4, 2025
In some countries (such as Australia), it is very common for wages to be
paid on a fortnightly basis, that is, every 2 weeks. As a result, a
number of other expenses are also paid on a fortnightly basis.

This commit extends the `Interval` enum by adding a `FORTNIGHT` option.
I have added a test for that, and have updated the translations where
possible (not that other than for English and French, the other
translations may be suboptimal).

As part of this commit, I have also taken the opportunity to fix a
confusion between ISO weeks and calendar weeks as the two do not always
match, and `2025-W01` is the ISO format indicating the week starting on
December 30 2024.

Resolves: beancount#1939
Signed-off-by: JP-Ellis <[email protected]>
JP-Ellis added a commit to JP-Ellis/fava that referenced this issue Feb 4, 2025
In some countries (such as Australia), it is very common for wages to be
paid on a fortnightly basis, that is, every 2 weeks. As a result, a
number of other expenses are also paid on a fortnightly basis.

This commit extends the `Interval` enum by adding a `FORTNIGHT` option.
I have added a test for that, and have updated the translations where
possible (not that other than for English and French, the other
translations may be suboptimal).

As part of this commit, I have also taken the opportunity to fix a
confusion between ISO weeks and calendar weeks as the two do not always
match, and `2025-W01` is the ISO format indicating the week starting on
December 30 2024.

Resolves: beancount#1939
Signed-off-by: JP-Ellis <[email protected]>
JP-Ellis added a commit to JP-Ellis/fava that referenced this issue Feb 5, 2025
In some countries (such as Australia), it is very common for wages to be
paid on a fortnightly basis, that is, every 2 weeks. As a result, a
number of other expenses are also paid on a fortnightly basis.

This commit extends the `Interval` enum by adding a `FORTNIGHT` option.
I have added a test for that, and have updated the translations where
possible (not that other than for English and French, the other
translations may be suboptimal).

Resolves: beancount#1939
Signed-off-by: JP-Ellis <[email protected]>
JP-Ellis added a commit to JP-Ellis/fava that referenced this issue Feb 5, 2025
In some countries (such as Australia), it is very common for wages to be
paid on a fortnightly basis, that is, every 2 weeks. As a result, a
number of other expenses are also paid on a fortnightly basis.

This commit extends the `Interval` enum by adding a `FORTNIGHT` option.
I have added a test for that, and have updated the translations where
possible (not that other than for English and French, the other
translations may be suboptimal).

Resolves: beancount#1939
Signed-off-by: JP-Ellis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants