Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mentoring centers - expenses #97

Open
edmondpr opened this issue Feb 5, 2024 · 1 comment
Open

Mentoring centers - expenses #97

edmondpr opened this issue Feb 5, 2024 · 1 comment
Assignees
Labels

Comments

@edmondpr
Copy link
Member

edmondpr commented Feb 5, 2024

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:

  • name of expense
  • amount
  • boolean informing if the expense is recurring

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 lokeshpathrabe self-assigned this Feb 18, 2024
@lokeshpathrabe
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants