Skip to content

main-4977

@guru-aot guru-aot tagged this 23 Dec 18:26
- AssessmentGateway workflow has been changed to save the following data
in the workflow data
> - calculatedDataExemptScholarshipsBursaries
> - calculatedDataSpouseContributionWeeks
> - calculatedDataTotalFederalFSC
> - calculatedDataTotalProvincialFSC


![image](https://github.com/user-attachments/assets/a58ee079-0016-4d17-9a66-c07fa46f6dd6)

- Refactored the method
[getProgramYearPreviousAwardsTotals](https://github.com/bcgov/SIMS/blob/main/sources/packages/backend/libs/services/src/students-assessments/assessment-sequential-processing.service.ts#L148)
to reduce the call to the database in fetching the sequenced application
and assessment.
- Created a private method as requested in the ticket and additionally
created another method getFTProgramYearContributionTotals to process the
contribution total logic.
- E2E test case was updated to show the created variables and new E2E
created to test the sum logic in the query.
> - programYearTotalScholarshipsBursaries
> - programYearTotalSpouseContributionWeeks
> - programYearTotalFederalFSC
> - programYearTotalProvincialFSC

Note: PR separation is not done, as the workflow change was very minor
and it can be accommodated in a single PR.

---------

Co-authored-by: guru-aot <[email protected]>
Assets 2
Loading