Merge branch 'feat/BE/Sprint-8' into dev/gio

This commit is contained in:
MacBook Air M1
2026-01-02 12:25:50 +07:00
164 changed files with 10368 additions and 1563 deletions
@@ -161,7 +161,6 @@ func (s *repportService) GetMarketing(c *fiber.Ctx, params *validation.Marketing
func (s *repportService) calculateHppPricePerKg(ctx context.Context, projectFlockID uint, category string) float64 {
totalCost := s.getTotalProjectCost(ctx, projectFlockID)
if totalCost == 0 {
s.Log.Warnf("HPP calculation: No cost found for project flock ID %d. Check if purchase items are linked to project_flock_kandang_id", projectFlockID)
return 0
}