Skip to content

DEV - Connect Add Revenue and Add Cost to backend #373

@prooflesben

Description

@prooflesben

Overview

For the cashflow page we have cost and revenue items users can add them through our frontend. We want to connect this to the backend to have this fully functionally. Currently the design is implemented and most of what you will have to do is call the backend endpoint and update the store on a success add. We also need to add the add installments button functionality. Ensure when add installment is pressed another installment field gets added. This ticket does not include nicely handling the errors when uploading you can display then simply with an alert a future ticket will make this appear nicely in the frontend.

Image

Tasks

  • Ensure input validation on all of the cost/revenue fields when adding a new one
  • Update the dropdown with the respective RevenueType and CostType enums
  • Make sure user can upload a cost item to the backend using the frontend
  • Make sure user can upload a revenue item to the backend using the frontend
  • Once a new item is sent to the backend successfully update the store

Acceptance Criteria

  • Add Cost and Add Revenue is fully connected to the backend

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