Allow host to turn on or off expense types for collectives
Resolve https://github.com/opencollective/opencollective/issues/5525
Description
Here are the PR related to this issue : https://github.com/opencollective/opencollective/issues/5525
As discussed, the options to override the expenseTypes setting at the collective level is on stand by but I have already handled that at the Api level. I have also added a graphql test to test wrong expense type post.
Screenshots
Resolved the two items above, added tests, and completed the feature by also looking for the flag on the parent collective. We'll need to implement this one in the frontend too.
Hi @Betree , yes for the testing I didn't have the time to finish the testing in the afternoon as in the morning I had this overheat cpu issue and have to join some friends in the afternoon. But let me know if you want me to finish the PR 👍
Introduced a new supportedExpenseTypes field to have a generic way to check this & centralize the logic in the API