Skip to content

Commit

Permalink
chore: add new maximumPerformanceMilestoneAmount calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
BCerki committed Jul 26, 2023
1 parent c5c2890 commit 4865830
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions app/components/Form/ProjectEmissionIntensityReportFormSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
node {
calculatedEiPerformance
paymentPercentage
holdbackAmountToDate
maximumPerformanceMilestoneAmount
actualPerformanceMilestoneAmount
newFormData
operation
Expand All @@ -52,7 +52,7 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
newFormData
calculatedEiPerformance
paymentPercentage
holdbackAmountToDate
maximumPerformanceMilestoneAmount
actualPerformanceMilestoneAmount
}
}
Expand All @@ -66,7 +66,7 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
newFormData
calculatedEiPerformance
paymentPercentage
holdbackAmountToDate
maximumPerformanceMilestoneAmount
actualPerformanceMilestoneAmount
}
}
Expand All @@ -88,7 +88,8 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
calculatedEiPerformance:
summaryReportingRequirement?.calculatedEiPerformance,
paymentPercentage: summaryReportingRequirement?.paymentPercentage,
holdbackAmountToDate: summaryReportingRequirement?.holdbackAmountToDate,
maximumPerformanceMilestoneAmount:
summaryReportingRequirement?.maximumPerformanceMilestoneAmount,
actualPerformanceMilestoneAmount:
summaryReportingRequirement?.actualPerformanceMilestoneAmount,
};
Expand All @@ -103,9 +104,9 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
paymentPercentage:
summaryReportingRequirement?.formChangeByPreviousFormChangeId
?.paymentPercentage,
holdbackAmountToDate:
maximumPerformanceMilestoneAmount:
summaryReportingRequirement?.formChangeByPreviousFormChangeId
?.holdbackAmountToDate,
?.maximumPerformanceMilestoneAmount,
actualPerformanceMilestoneAmount:
summaryReportingRequirement?.formChangeByPreviousFormChangeId
?.actualPerformanceMilestoneAmount,
Expand All @@ -121,9 +122,9 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
paymentPercentage:
latestCommittedEmissionIntensityReportFormChange?.edges[0]?.node
?.paymentPercentage,
holdbackAmountToDate:
maximumPerformanceMilestoneAmount:
latestCommittedEmissionIntensityReportFormChange?.edges[0]?.node
?.holdbackAmountToDate,
?.maximumPerformanceMilestoneAmount,
actualPerformanceMilestoneAmount:
latestCommittedEmissionIntensityReportFormChange?.edges[0]?.node
?.actualPerformanceMilestoneAmount,
Expand Down Expand Up @@ -248,8 +249,8 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC<Props> = ({
summaryReportingRequirement?.calculatedEiPerformance ?? 0,
paymentPercentageOfPerformanceMilestoneAmount:
summaryReportingRequirement?.paymentPercentage,
holdbackAmountToDate:
summaryReportingRequirement?.holdbackAmountToDate,
maximumPerformanceMilestoneAmount:
summaryReportingRequirement?.maximumPerformanceMilestoneAmount,
actualPerformanceMilestoneAmount:
summaryReportingRequirement?.actualPerformanceMilestoneAmount,
operation: summaryReportingRequirement?.operation,
Expand Down

0 comments on commit 4865830

Please sign in to comment.