upstreammuse / cashpiles

0 stars 0 forks source link

Allow goals to change during their savings run #22

Open upstreammuse opened 4 years ago

upstreammuse commented 4 years ago

Instead of forcing a goal to be canceled, which moves its allocated amount to its parent category, it would be more useful to allow the goal to change with a new amount and target date. If the new amount is greater than the old amount, then subtract, so that the new goal only has to save the difference during its time period. If the new amount is less than the old amount, then refund the difference back to the category owner, and immediately close out the goal. This prevents funds getting orphaned in the goal category, and prevents the user from manually having to move the funds back out of the parent category if their plans change.