From 33e89d65ab0e76234a8c2295fb40dc7168d90f79 Mon Sep 17 00:00:00 2001 From: ragilap Date: Tue, 13 Jan 2026 15:37:54 +0700 Subject: [PATCH] [FIX/BE-US-281] changes calculate fcr egg --- .../modules/production/recordings/services/recording.service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/modules/production/recordings/services/recording.service.go b/internal/modules/production/recordings/services/recording.service.go index ccf360b9..88ed4cf7 100644 --- a/internal/modules/production/recordings/services/recording.service.go +++ b/internal/modules/production/recordings/services/recording.service.go @@ -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 {