stock request table created

This commit is contained in:
2026-07-04 17:49:54 +05:30
parent f220c24c17
commit abe2cb997b
24 changed files with 648 additions and 61 deletions

View File

@@ -452,3 +452,21 @@ type LocationRevenueDetails struct {
Revenue float64 `json:"revenue"`
}
type SalesSummaryChartData struct {
Date string `json:"date"`
Revenue float64 `json:"revenue"`
Orders int `json:"orders"`
}
type SalesSummaryTopLocation struct {
Locationname string `json:"locationname"`
Revenue float64 `json:"revenue"`
}
type SalesSummaryResponse struct {
TotalRevenue float64 `json:"totalRevenue"`
TotalOrders int `json:"totalOrders"`
AverageOrderValue float64 `json:"averageOrderValue"`
ChartData []SalesSummaryChartData `json:"chartData"`
TopLocations []SalesSummaryTopLocation `json:"topLocations"`
}