Skip to content

Route for the revenue #174

@JulesGresset

Description

@JulesGresset

Description
the route kpi/revenues with query param timeBegin and timeEnd return the sum of every orders payed.
The breakdown param group the revenues base on their time (see explications of breakdown in #173)
Is the param useCase is equal to statsPOS, the route should also return the number of orders and the average waiting time (both of this should also be grouped if the breakdown is used !)

Example
timeBegin: 00:00
timeEnd: 00:30
breakdown: 15
useCase: statsPOS

{
    "00:00": {
        "revenues": Revenues between 00:00 and 00:15,
        "ordersCount": Nbr of orders between 00:00 and 00:15,
        "averageWaitingTime": Avg wait time between 00:00 and 00:15
    },
    "00:15": {
        "revenues": Revenues between 00:15 and 00:30,
        "ordersCount": Nbr of orders between 00:15 and 00:30,
        "averageWaitingTime": Avg wait time between 00:15 and 00:30
    },
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions