Merge branch 'Fix/BE/US-281-adjustment-recording-egg-mass' into 'development'

[FIX/BE-US] delete *1000 egg mass

See merge request mbugroup/lti-api!274
This commit is contained in:
Hafizh A. Y.
2026-01-29 02:50:55 +00:00
@@ -1692,7 +1692,8 @@ func (s *recordingService) computeAndUpdateMetrics(ctx context.Context, tx *gorm
var eggMass float64 var eggMass float64
if remainingChick > 0 && totalEggWeightGrams > 0 { if remainingChick > 0 && totalEggWeightGrams > 0 {
eggMass = (totalEggWeightGrams / remainingChick) / 1000 // totalEggWeightGrams is in grams; egg mass is grams per hen.
eggMass = totalEggWeightGrams / remainingChick
updates["egg_mass"] = eggMass updates["egg_mass"] = eggMass
recording.EggMass = &eggMass recording.EggMass = &eggMass
} else { } else {