Add Filter Sales Metric

This commit is contained in:
aditya.siregar
2024-08-02 14:41:41 +07:00
parent 4e4d9d3a90
commit eff502b24a
5 changed files with 47 additions and 16 deletions
+6 -3
View File
@@ -126,6 +126,7 @@ type OrderSearch struct {
Offset int
StartDate string
EndDate string
Period string
}
type HistoryOrderList []*HistoryOrderDB
@@ -180,7 +181,9 @@ func (e *TicketSoldDB) ToTicketSold() *TicketSold {
}
type ProductDailySales struct {
Day time.Time
ProductID int64
TotalQuantity int
Day time.Time
SiteID int64
SiteName string
PaymentType string
Total float64
}