diff --git a/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx b/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx index aab6906..2edf56e 100644 --- a/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx +++ b/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx @@ -1196,7 +1196,7 @@ setAdditionalForecastMonths([ {!shouldHideForecast && ( - {forecastLabel || 'Q3 2024'} (NEXT YEAR FORECAST) + {forecastLabel || 'Q3 2024'} (NEXT QUARTER FORECAST) )} @@ -1213,7 +1213,7 @@ setAdditionalForecastMonths([ {!shouldHideForecast && ( - {forecastLabel || 'Q3 2024'} (NEXT YEAR FORECAST) + {forecastLabel || 'Q3 2024'} (NEXT QUARTER FORECAST) )} @@ -1414,7 +1414,7 @@ setAdditionalForecastMonths([ {/* HISTORICAL Data (from API) */} - {(() => { + {showPreviousNext && (() => { const historicalData = getCurrentYearForecastData(product?.product?.id); return ( <> @@ -1522,7 +1522,7 @@ setAdditionalForecastMonths([ )} - + {/* Current Quarter – Month 3 */}
@@ -1535,37 +1535,43 @@ setAdditionalForecastMonths([ {/* Next Year Forecast – Month 1 */} - -
- {product.forecast_quantity_period_one || '0'} - {getVarianceDisplay( - product.current_quantity_period_three, - product.forecast_quantity_period_one - )} -
- + {!shouldHideForecast && ( + +
+ {product.forecast_quantity_period_one || '0'} + {getVarianceDisplay( + product.current_quantity_period_three, + product.forecast_quantity_period_one + )} +
+ + )} {/* Next Year Forecast – Month 2 */} - -
- {product.forecast_quantity_period_two || '0'} - {getVarianceDisplay( - product.forecast_quantity_period_one, - product.forecast_quantity_period_two - )} -
- + {!shouldHideForecast && ( + +
+ {product.forecast_quantity_period_two || '0'} + {getVarianceDisplay( + product.forecast_quantity_period_one, + product.forecast_quantity_period_two + )} +
+ + )} {/* Next Year Forecast – Month 3 */} - -
- {product.forecast_quantity_period_three || '0'} - {getVarianceDisplay( - product.forecast_quantity_period_two, - product.forecast_quantity_period_three - )} -
- + {!shouldHideForecast && ( + +
+ {product.forecast_quantity_period_three || '0'} + {getVarianceDisplay( + product.forecast_quantity_period_two, + product.forecast_quantity_period_three + )} +
+ + )} )} @@ -1637,7 +1643,7 @@ setAdditionalForecastMonths([ {/* HISTORICAL Cost (from API) */} - {(() => { + {showPreviousNext && (() => { const historicalData = getCurrentYearForecastData(product?.product?.id); return ( <>