From 4865830a8cc428558475c7d729d0155c7455bf19 Mon Sep 17 00:00:00 2001 From: Brianna Cerkiewicz Date: Wed, 26 Jul 2023 13:12:20 -0700 Subject: [PATCH] chore: add new maximumPerformanceMilestoneAmount calculation --- ...jectEmissionIntensityReportFormSummary.tsx | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/app/components/Form/ProjectEmissionIntensityReportFormSummary.tsx b/app/components/Form/ProjectEmissionIntensityReportFormSummary.tsx index 47efa23cab..b39f1a61ef 100644 --- a/app/components/Form/ProjectEmissionIntensityReportFormSummary.tsx +++ b/app/components/Form/ProjectEmissionIntensityReportFormSummary.tsx @@ -40,7 +40,7 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC = ({ node { calculatedEiPerformance paymentPercentage - holdbackAmountToDate + maximumPerformanceMilestoneAmount actualPerformanceMilestoneAmount newFormData operation @@ -52,7 +52,7 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC = ({ newFormData calculatedEiPerformance paymentPercentage - holdbackAmountToDate + maximumPerformanceMilestoneAmount actualPerformanceMilestoneAmount } } @@ -66,7 +66,7 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC = ({ newFormData calculatedEiPerformance paymentPercentage - holdbackAmountToDate + maximumPerformanceMilestoneAmount actualPerformanceMilestoneAmount } } @@ -88,7 +88,8 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC = ({ calculatedEiPerformance: summaryReportingRequirement?.calculatedEiPerformance, paymentPercentage: summaryReportingRequirement?.paymentPercentage, - holdbackAmountToDate: summaryReportingRequirement?.holdbackAmountToDate, + maximumPerformanceMilestoneAmount: + summaryReportingRequirement?.maximumPerformanceMilestoneAmount, actualPerformanceMilestoneAmount: summaryReportingRequirement?.actualPerformanceMilestoneAmount, }; @@ -103,9 +104,9 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC = ({ paymentPercentage: summaryReportingRequirement?.formChangeByPreviousFormChangeId ?.paymentPercentage, - holdbackAmountToDate: + maximumPerformanceMilestoneAmount: summaryReportingRequirement?.formChangeByPreviousFormChangeId - ?.holdbackAmountToDate, + ?.maximumPerformanceMilestoneAmount, actualPerformanceMilestoneAmount: summaryReportingRequirement?.formChangeByPreviousFormChangeId ?.actualPerformanceMilestoneAmount, @@ -121,9 +122,9 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC = ({ paymentPercentage: latestCommittedEmissionIntensityReportFormChange?.edges[0]?.node ?.paymentPercentage, - holdbackAmountToDate: + maximumPerformanceMilestoneAmount: latestCommittedEmissionIntensityReportFormChange?.edges[0]?.node - ?.holdbackAmountToDate, + ?.maximumPerformanceMilestoneAmount, actualPerformanceMilestoneAmount: latestCommittedEmissionIntensityReportFormChange?.edges[0]?.node ?.actualPerformanceMilestoneAmount, @@ -248,8 +249,8 @@ const ProjectEmissionsIntensityReportFormSummary: React.FC = ({ summaryReportingRequirement?.calculatedEiPerformance ?? 0, paymentPercentageOfPerformanceMilestoneAmount: summaryReportingRequirement?.paymentPercentage, - holdbackAmountToDate: - summaryReportingRequirement?.holdbackAmountToDate, + maximumPerformanceMilestoneAmount: + summaryReportingRequirement?.maximumPerformanceMilestoneAmount, actualPerformanceMilestoneAmount: summaryReportingRequirement?.actualPerformanceMilestoneAmount, operation: summaryReportingRequirement?.operation,