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

[Feature] Rule action for basic calculation instead of only being able to set it #3378

Closed
1 of 2 tasks
dj-bauer opened this issue Sep 6, 2024 · 1 comment
Closed
1 of 2 tasks
Labels
feature This issue is a feature request needs votes Please upvote this feature request if you would like to see it implemented!

Comments

@dj-bauer
Copy link

dj-bauer commented Sep 6, 2024

Verified feature request does not already exist?

  • I have searched and found no existing issue

💻

  • Would you like to implement this feature?

Pitch: what problem are you trying to solve?

When creating a rule there is already the possibility to set the amount transferred, but now i would like basic arithmetic functionality or at least multiplying by a factor.

My usecase is this:
I have an account for cash, and one for my Food court balance.
When I load up my food card with more than 20€ at a time, i get a 5% bonus.
So far we can add the following rule for this:

if
    account is Cash
    payee is Mensa
    amount is greater  equal 20€
then
    set amount to 21€

I believe this functionality could be useful to a number of applications, where you get bonuses or similar.

Describe your ideal solution to this problem

My imagined way of implementing this functionality in the user interface would be by adding a fourth action.
So far we have the action set, prepend to notes and append to notes.

We could add another field, that says calculate which lets you select an operation like for the start +, -, *, /.
Each of these operations obviously has two operands associated with it, so two fields show up, which can either be filled with variables associated with the transaction, or constant values.
This would allow an action like the following:
calculate amount as "amount * 1.05"
So the action would be calculate of the type Multiplication and it has the transaction field amount and the constant 1.05 associated with it.

Teaching and learning

We could expand the tab of actions in the Rule documentation entry.

@dj-bauer dj-bauer added the feature This issue is a feature request label Sep 6, 2024
@github-actions github-actions bot added the needs votes Please upvote this feature request if you would like to see it implemented! label Sep 6, 2024
Copy link
Contributor

github-actions bot commented Sep 6, 2024

✨ Thanks for sharing your idea! ✨

This repository uses lodash style issue management for enhancements. That means enhancement issues are automatically closed. This doesn’t mean we don’t accept feature requests, though! We will consider implementing ones that receive many upvotes, and we welcome contributions for any feature requests marked as needing votes (just post a comment first so we can help you make a successful contribution).

The enhancement backlog can be found here: https://github.com/actualbudget/actual/issues?q=label%3A%22needs+votes%22+sort%3Areactions-%2B1-desc+

Don’t forget to upvote the top comment with 👍!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue is a feature request needs votes Please upvote this feature request if you would like to see it implemented!
Projects
None yet
Development

No branches or pull requests

1 participant