upes-open / OSoC-24-BizSync

GNU Affero General Public License v3.0
1 stars 12 forks source link

Sales Management API #31

Closed akshit-bhutani-19 closed 2 months ago

akshit-bhutani-19 commented 3 months ago

Develop the backend APIs for managing sales orders, customer details, returns, and generating sales reports.

Requirements:

GET /api/sales/orders: Endpoint to retrieve a list of sales orders with details. GET /api/customers/:id: Endpoint to retrieve customer details for a specific customer. POST /api/returns: Endpoint to process returns and update corresponding sales order status. GET /api/reports/sales: Endpoint to generate sales reports based on selected criteria (e.g., date range, product category).

Database Schema:

Sales Order: orderNumber (String) date (Date) customer (Object: { name: String, email: String, phone: String }) items (Array of Objects: { productId: String, quantity: Number, unitPrice: Number }) totalAmount (Number) status (String)

Perform unit testing using Postman

Siddharthaaa21 commented 3 months ago

would like to work on it, lets connect!

akshit-bhutani-19 commented 3 months ago

@Siddharthaaa21 You can work on it. If you want to discuss further we can connect on discord

Siddharthaaa21 commented 3 months ago

alright

shradiphylleia commented 2 months ago

pls assign.

akshit-bhutani-19 commented 2 months ago

@shradiphylleia You can begin with it

rampantvoid commented 2 months ago

hi can you assign this to me