-
Notifications
You must be signed in to change notification settings - Fork 275
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
Recurring bills (ISP, electricity, water, charges...) #152
Comments
That will be very convenient ! |
This could be useful ! However, it's not really clear how do we implement this. Mockups are welcome. Although it's quite difficult to configure, it's possible to do this now using the API.
Note your member id, as it it required to configure the next request.
If you omit the date field, we will use the current time at bill's creation. You can find the documentation of the API here : https://github.com/spiral-project/ihatemoney/blob/master/docs/api.rst To automate this, you can use a Cron script, or even use some service like IFTTT. This is pretty mush the same thing as using curl, except that you need to pass the authentification data like this : |
We've not implemented this in the current version of the software in order to keep things easy to grasp (and the UX simple), but I can see why this would be useful. As @aavenel says, mockups (or implementations!) would be welcome for this. For now, I don't think anyone volunteered. |
I was actually just searching for a opensource system that could do this. I basically want to track multiple shared online services. I have an online service that costs $12 a month and 3 of us share it. So every month It should add debt to the other 2 people. One person pays monthly and I can track that and the other pays yearly so this would be useful with multiple online services and people who don't pay all the time. So one of the users logs in and sees he owes me x amount of money total and he can see a break down of all each transaction built up over time. |
The way to do this in Flask would be to create a task (in I believe it's simple enough for a good first issue, so labeled as such. |
Hi @almet I'm thinking of working on this issue, it looks like the first step would be mockup of the UI changes in the "Add a bill" dialog. It seems like you guys put a lot of emphasis on keeping the default workflow as simple as possible. For this feature, maybe the best way to implement that would be a "Make recurring" hyperlink just above the submit button which expands to reveal the interface for specifying the frequency, first occurrence, etc. Something else I'm thinking about is the workflow for how to edit or cancel a recurring bill. Should that be integrated with the "Edit Bill" view, or should a separate workflow exist to manage recurring bills? |
Hi, didn't check the rest of the proposal, Other than that, visually, i like the fact that it's pretty discreet |
Wow, that's a nice proposal :-) Thank you for the work done already! That looks great to me, go ahead ! |
This is indeed a wonderful proposal! However, to make code a lot simpler, I would like to have another proposal: a copy feature. We can add a "copy bill" that opens the "Add bill" form with all fields filled with the original bill. By the way, a "copy" operation could be useful even with recurring bills implemented… |
Is anyone on this ? I'm planning to :) |
Yay ! |
@youegraillot If you still want to work on this that would be very useful. I'm volunteering to review and help you out to make things simpler, so we can have this in the next release. Let me know what you think! |
I was thinking about how this should be done technically, and here is my thinking so far : I think about multiple ways to do this, and I believe we should use option 2 (Flask Crontab).
Here are some stuff I considered and let on the side :
|
I am also against using Celery here. I set it up for Weblate, it's not useless, but really overkill. |
I missed this info, and you're probably right, we should head another direction. I've found python-crontab which makes it possible to write crontabs for us, but I'm not even sure we will need it. I suppose we can make things work with a command and then worry about the specifics on how we will ensure this command is summoned at the right times :-) |
I would know if it's possible to add bills that could have a frequency (every day/week/month//year)?
The text was updated successfully, but these errors were encountered: