Skip to content

Commit

Permalink
remove duplicated prop in cost details
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Dec 5, 2024
1 parent 7e47e50 commit 07fd676
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions api/src/modules/calculations/cost.calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ export class CostCalculator {
capitalExpenditure: totalCapex,
operationalExpenditure: totalOpex,
totalCost: totalCapex + totalCapex,
operationExpenditure: totalOpex,
feasibilityAnalysis: sum(
Object.values(this.costPlans.feasibilityAnalysis),
),
Expand Down Expand Up @@ -298,7 +297,6 @@ export class CostCalculator {
this.costPlans.implementationLabor,
discountRate,
),
operationExpenditure: this.totalOpexNPV,
monitoring: this.calculateNpv(this.costPlans.monitoring, discountRate),
maintenance: this.calculateNpv(
this.costPlans.maintenance,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import { AdditionalBaseData } from '@api/modules/calculations/data.repository';

import { CreateCustomProjectDto } from '@api/modules/custom-projects/dto/create-custom-project-dto';
import { ConservationProjectInput } from '@api/modules/custom-projects/input-factory/conservation-project.input';
import {
ModelAssumptionsForCalculations,
NonOverridableModelAssumptions,
} from '@api/modules/calculations/assumptions.repository';
import { BaseDataView } from '@shared/entities/base-data.view';
import { NonOverridableModelAssumptions } from '@api/modules/calculations/assumptions.repository';
import { CostOutput } from '@api/modules/calculations/calculation.engine';
import { ProjectInput } from '@api/modules/calculations/cost.calculator';
import { CustomProject } from '@shared/entities/custom-project.entity';
Expand Down
1 change: 0 additions & 1 deletion shared/dtos/custom-projects/custom-project-output.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export type CustomProjectCostDetails = {
establishingCarbonRights: number;
validation: number;
implementationLabor: number;
operationExpenditure: number;
monitoring: number;
maintenance: number;
communityBenefitSharingFund: number;
Expand Down

0 comments on commit 07fd676

Please sign in to comment.