add command normalize data seed standar and price adjustment stocks

This commit is contained in:
giovanni
2026-04-20 00:03:59 +07:00
parent 30adbb6b8a
commit f98c73f569
8 changed files with 1031 additions and 7 deletions
@@ -773,7 +773,7 @@ func (s *repportService) GetMarketing(c *fiber.Ctx, params *validation.Marketing
return nil, 0, err
}
hppByDelivery := buildMarketingHppByDelivery(c.Context(), s.HppSvc, attributionRows)
hppByDelivery := buildMarketingHppByDelivery(c.Context(), s.HppV2Svc, attributionRows)
categoryByDelivery := buildMarketingCategoryByDelivery(deliveryProducts, attributionRows)
items := dto.ToMarketingReportItems(deliveryProducts, hppByDelivery, categoryByDelivery, agingMap)
@@ -782,7 +782,7 @@ func (s *repportService) GetMarketing(c *fiber.Ctx, params *validation.Marketing
func buildMarketingHppByDelivery(
ctx context.Context,
hppSvc approvalService.HppService,
hppSvc approvalService.HppV2Service,
attributionRows []commonRepo.MarketingDeliveryAttributionRow,
) map[uint]float64 {
if len(attributionRows) == 0 {