adjust init population

This commit is contained in:
MacBook Air M1
2026-01-06 17:23:06 +07:00
parent 82a7bada05
commit f5a016b74b
2 changed files with 19 additions and 18 deletions
@@ -538,7 +538,7 @@ func (s closingService) GetClosingDataProduksi(c *fiber.Ctx, projectFlockID uint
var population float64
for _, history := range project.KandangHistory {
for _, chickin := range history.Chickins {
population += chickin.UsageQty + chickin.PendingUsageQty
population += chickin.UsageQty
}
}