Feat[BE]: on chickin laying covert Pullet to Layer

This commit is contained in:
aguhh18
2025-12-22 13:51:27 +07:00
parent ff4b4afcca
commit cbd3047a17
3 changed files with 6 additions and 27 deletions
@@ -138,7 +138,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
}