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: Endpoint to create invoice #141

Open
5 tasks
Tracked by #138
enzofalone opened this issue Aug 6, 2022 · 0 comments
Open
5 tasks
Tracked by #138

Backend: Endpoint to create invoice #141

enzofalone opened this issue Aug 6, 2022 · 0 comments

Comments

@enzofalone
Copy link
Contributor

enzofalone commented Aug 6, 2022

  • Create invoice must take values of: date, sold to
    • Create reference rows in relation to items that will be invoiced with: base price, sales price and to what invoice ID they are
    • Calculate total price of invoice column by adding up all the item's price
    • Decrease the quantity as how many were sold
    • Throw error if quantity that is trying to be invoiced of any item is greater than the quantity of the items is
@enzofalone enzofalone changed the title Endpoint to create invoice Backend: Endpoint to create invoice Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant