mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
Merge branch 'fix/data-production' into 'development'
[FIX][BE]: fix value all standard See merge request mbugroup/lti-api!243
This commit is contained in:
@@ -743,6 +743,10 @@ func (s closingService) GetClosingDataProduksi(c *fiber.Ctx, projectFlockID uint
|
||||
return nil, fiber.NewError(fiber.StatusInternalServerError, "Failed to determine production week")
|
||||
}
|
||||
|
||||
if !isGrowing && currentWeek != 0 {
|
||||
currentWeek = currentWeek + 17
|
||||
}
|
||||
|
||||
targetAverages, err := s.RecordingRepo.GetAverageTargetMetricsByProjectFlockKandangID(c.Context(), projectFlockKandangIDs[0], !isGrowing)
|
||||
if err != nil {
|
||||
s.Log.Errorf("Failed to calculate target metrics for project flock %d: %+v", projectFlockID, err)
|
||||
|
||||
Reference in New Issue
Block a user