Add Filter Sales Metric
This commit is contained in:
@@ -282,9 +282,11 @@ func (h *Handler) toDailySales(resp []entity.ProductDailySales) []response.Produ
|
||||
var dailySales []response.ProductDailySales
|
||||
for _, b := range resp {
|
||||
dailySales = append(dailySales, response.ProductDailySales{
|
||||
Day: b.Day,
|
||||
ProductID: b.ProductID,
|
||||
TotalQuantity: b.TotalQuantity,
|
||||
Day: b.Day,
|
||||
SiteID: b.SiteID,
|
||||
Total: b.Total,
|
||||
SiteName: b.SiteName,
|
||||
PaymentType: b.PaymentType,
|
||||
})
|
||||
}
|
||||
return dailySales
|
||||
|
||||
Reference in New Issue
Block a user