ayastreb / money-tracker

:moneybag: Personal finances tracking web app
https://moneytracker.cc/
MIT License
908 stars 249 forks source link

Automated transactions #15

Open ani12321 opened 6 years ago

ani12321 commented 6 years ago

It would be nice to have a way to do transactions automatically on a specific time. For example, on day 1 of each month we get to pay a few bills. By creating an automatic transaction, the income or expense is created automatically.

ayastreb commented 6 years ago

Yes, I was thinking about something like this. WIll try to implement it soon :)

ani12321 commented 6 years ago

I can help. You've done a good job with this. Few times ago I was thinking to have something like this project but found it ready from you :)

ayastreb commented 6 years ago

Thanks! I haven't decided yet how to implement it. This app does not really have a backend - client is synchronized with CouchDB server directly. I think this automated/scheduled transactions should be created by some kind of a cron-job, so I was thinking about using something like https://webtask.io/docs/cron

ani12321 commented 6 years ago

What about having a system to check the scheduled transactions each time the app is opened? If the time of transaction has passed, put it in the transactions list and synchronize.

ayastreb commented 6 years ago

That is also an option, good idea! :) We would also need to think about UI - users should be able to manage their scheduled transactions somehow. It should probably be somewhere in "Transactions" screen...

ani12321 commented 6 years ago

It can be in transactions screen but it probably needs a different list to spot it from normal transactions. It can also be as a different menu item, 'Planned transactions' or 'Scheduled transactions'