diff --git a/api/src/modules/indicator-records/services/impact-calculator.service.ts b/api/src/modules/indicator-records/services/impact-calculator.service.ts index 4f94b191b2..58976ef760 100644 --- a/api/src/modules/indicator-records/services/impact-calculator.service.ts +++ b/api/src/modules/indicator-records/services/impact-calculator.service.ts @@ -328,7 +328,7 @@ export class ImpactCalculator { const preProcessed: number = getPreprocessed( INDICATOR_NAME_CODES.GHG_FARM, ); - return preProcessed * getLF(); + return preProcessed * rawData.tonnage || 0; }, [INDICATOR_NAME_CODES.WU]: () => { return rawData[INDICATOR_NAME_CODES.WU] * tonnage || 0; diff --git a/api/test/integration/indicator-record/calculations/indicator-records.service.spec.ts b/api/test/integration/indicator-record/calculations/indicator-records.service.spec.ts index 14523866c5..7aa2651559 100644 --- a/api/test/integration/indicator-record/calculations/indicator-records.service.spec.ts +++ b/api/test/integration/indicator-record/calculations/indicator-records.service.spec.ts @@ -246,6 +246,7 @@ describe('Impact Calculator Tests', () => { [INDICATOR_NAME_CODES.NCE]: 0.4, [INDICATOR_NAME_CODES.FLIL]: 0.3, [INDICATOR_NAME_CODES.ENL]: 0.1, + [INDICATOR_NAME_CODES.GHG_FARM]: 0.2, }; //ACT