Life-Pill / pharmacy-pos-main-backend

The Pharmacy POS System Backend is the server-side component of our comprehensive pharmacy management software. It is developed using Spring Boot, Java, Spring Security ,and Microservices Architecture
Apache License 2.0
5 stars 3 forks source link

Request for New Endpoint: Daily Orders and Sales for a Branch #108

Closed TheTharz closed 5 months ago

TheTharz commented 5 months ago

Request for New Endpoint: Daily Orders and Sales for a Branch

Description

I would like to request the creation of a new endpoint in our pharmacy POS system. This endpoint should provide an array of objects, each containing the date, number of orders, and total sales for each day over the past year, filtered by branch ID.

Endpoint Details

Parameters

Response Format

The response should be a JSON array, where each object contains:

Example Response


[
  { "date": "2023-05-31", "orders": 15, "sales": 150.75 },
  { "date": "2023-06-01", "orders": 20, "sales": 200.50 },
  ...
  { "date": "2024-05-30", "orders": 18, "sales": 180.00 }
]