Skip to content

Commit

Permalink
fix: add milestone calculated values to form context
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepehr-Sobhani committed Jul 21, 2023
1 parent e410b49 commit ef015d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/components/Form/ProjectMilestoneReportFormSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ const ProjectMilestoneReportFormSummary: React.FC<Props> = ({
uiSchema={updatedUiSchema}
formData={milestoneFormDiffObject.formData}
formContext={{
calculatedHoldbackAmount:
milestoneReport?.newFormData?.calculatedHoldbackAmount,
calculatedGrossAmount:
milestoneReport?.newFormData?.calculatedGrossAmount,
calculatedNetAmount:
milestoneReport?.newFormData?.calculatedNetAmount,
operation: milestoneReport.operation,
oldData:
milestoneReport.formChangeByPreviousFormChangeId?.newFormData,
Expand Down

0 comments on commit ef015d5

Please sign in to comment.