Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

spending: Create a job that periodically checks for "behind" spending and updates them. #324

Open
elliotcourant opened this issue Sep 3, 2021 · 0 comments
Labels
bug Something isn't working enhancement New feature or request Expenses Funding Schedules Goals good first issue Good for newcomers Job Processing Anything related to scheduled work done in the background.

Comments

@elliotcourant
Copy link
Member

Steps to reproduce:

  • Create a funding schedule that does not occur next until the day after tomorrow. (+2 days)
  • Create an expense for that funding schedule that is due tomorrow. (+1 days)

After midnight on the morning of the next day (+1) when the expense is due. It should no longer be marked as "behind" as it now has a chance to be funded before it is due again.

Also if the spending object has not been "spent from" recently, the next occurance of the spending does not reset.

image


Create a job that will periodically (maybe once a midnight in the user's timezone - This might conflict with the funding schedule job though so maybe do them both in one go?) check all of the spending objects for an account and update their next occurrence date, as well as their behind status.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request Expenses Funding Schedules Goals good first issue Good for newcomers Job Processing Anything related to scheduled work done in the background.
Projects
None yet
Development

No branches or pull requests

1 participant