There is a predicate for daily_energy_goal_count, but nothing for water (or waste). Either new predicates should be created for the other resource types, or the existing predicate should be generalized so that it takes the resource type as a parameter.
One way to do this is to refactor resources - a long and involved process.
Another way is to just hack the code and have a big if else block for each of the resources.
There is a predicate for daily_energy_goal_count, but nothing for water (or waste). Either new predicates should be created for the other resource types, or the existing predicate should be generalized so that it takes the resource type as a parameter.