upstreammuse / cashpiles

0 stars 0 forks source link

Perform allocation on Reserve categories when transactions occur on Income categories #41

Closed upstreammuse closed 2 years ago

upstreammuse commented 2 years ago

This PR links Reserve categories and Income categories together using an Allocation that can be extended if/when future linkages between category types are required. It uses the visitor pattern to keep the allocation logic in the Allocation class and its children, rather than putting cross-category allocation logic in the categories themselves.