This repository was archived by the owner on Oct 31, 2021. It is now read-only.
This repository was 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
Description
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.
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.