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
+5 -3
View File
@@ -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