Skip to content

Backend: reports #48

@nekopudding

Description

@nekopudding
  • 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions