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

Backend: reports #48

Open
nekopudding opened this issue Jul 3, 2022 · 0 comments · Fixed by #56
Open

Backend: reports #48

nekopudding opened this issue Jul 3, 2022 · 0 comments · Fixed by #56
Assignees

Comments

@nekopudding
Copy link
Contributor

nekopudding commented Jul 3, 2022

  • backend report - setup as an endpoint to create report on demand - send as json

Report Creation

  • goals - pull usergoal and extract out all the goals with a deadline.getTime() which is larger than today
  • transaction - pull usertransaction and extract out all the transactions with the same getMonth(), getYear()
  • format the goals and transactions to only show date
  • split the transactions into 2 arrays, income and spendings based on their isIncome parameter
  • calculate savings using income - savings

report endpoints

  • find
  • creation
  • update - add recommendations
  • delete
@nekopudding nekopudding self-assigned this Jul 3, 2022
@nekopudding nekopudding linked a pull request Jul 7, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant