MentorsWithoutBorders / mwb-partners-admin

Web app for MWB partners
0 stars 0 forks source link

Mentoring centers - expenses #97

Open edmondpr opened 9 months ago

edmondpr commented 9 months ago

Design: https://www.figma.com/file/DgrKZX9mS13Zgf7k5pZ1WT/Partner-web-app?type=design&node-id=4408-1572&mode=design&t=VjEs7BRzrlprO8Fz-4

The following details will be made available for each expense at the /api/v1/centers/:id/expenses endpoint:

There will also be POST, PUT and DELETE versions of the same endpoint for adding new expenses and modifying/deleting expenses.

The endpoint /api/v1/centers/:id/expenses/paid will be made available for retrieving and updating the amount of paid expenses for the chosen month.

The endpoint /api/v1/centers/:id/expenses/balance will be made available for retrieving the balance (total amount paid for all months - total expenses for all months).

lokeshpathrabe commented 8 months ago

@edmondpr Do we need to support role based access to centers expenses ? Should all roles be allowed to see expenses ?