[FIX/BE-US-281] changes calculate fcr egg

This commit is contained in:
ragilap
2026-01-13 15:37:54 +07:00
parent ce7ce778fd
commit 33e89d65ab
@@ -1178,7 +1178,7 @@ func (s *recordingService) computeAndUpdateMetrics(ctx context.Context, tx *gorm
var fcrValue float64
if usageInGrams > 0 && totalEggWeightGrams > 0 {
fcrValue = totalEggWeightGrams / usageInGrams
fcrValue = usageInGrams / totalEggWeightGrams
updates["fcr_value"] = fcrValue
recording.FcrValue = &fcrValue
} else {