bcgov / SIMS

Student Information Management System. Post-Secondary Student Financial Aid System
Apache License 2.0
23 stars 13 forks source link

Implement logic for Application Event Code in IER12 #2289

Closed JasonCTang closed 10 months ago

JasonCTang commented 11 months ago

Questions on application status codes and IER (Answers below are based on discussion with @JasonCTang and @HRAGANBC )

Describe the task Implementation of Application event code and Application event date for IER 12. For reference Please use the spreadsheet from General > Files >Analysis > Institution File Specs > IER12_Analysis_Output_and_Mapping_Part_1_V2.xlsx

Private Zenhub Image

Additional context

List of validations which needs to be in place to derive application status code

Validation: Check if an application has more than one submission. Logic: select count(id) from sims.applications a where a.application_number = '$APPLICATION_NUMBER'

Validation: Check if the disbursement has any feedback error Logic: Check the sims.disbursement_feedback_errors feedback table for one or more errors which belongs to given list of FT Error codes. FT Error codes: Ecert Error Codes and Descriptions External.xlsx (this is only FT codes)

Validation: Check if disbursement is not sent due to restriction Logic: Check if the student has any active restriction of action type 'Stop full time disbursment' and disbursement date is after cutoff date (current date + 5)

Validation: Check if any disbursement award was withheld due to restriction Logic: Check if the restriction_amount_subracted > 0

Logic to derive the application event code from application and assessment data.

Note: BPMN diagram is used only explain the logic, it is not considered as solution for implementation.

Private Zenhub Image

Source BPMN file(for making updates) : application-event-code.bpmn.txt

Logic to derive application event date (As per discussion with @JasonCTang )

Note: BPMN diagram is used only explain the logic, it is not considered as solution for implementation.

Private Zenhub Image

Source BPMN: application-event-date.bpmn.txt

Acceptance Criteria

ann-aot commented 10 months ago

Qn 1: Validation: Check if the disbursement has any feedback error Logic: Check the sims.disbursement_feedback_errors feedback table for one or more errors which belongs to given list of FT Error codes.

ann-aot commented 10 months ago

Qn 2: Validation: Check if any disbursement award was withheld due to restriction Logic: Check if the restriction_amount_subracted > 0.

ann-aot commented 10 months ago

Application event codes, RECA, COEM, DISP is not considered for the ticket/not in the scope, that's why it is marked as grey.

ann-aot commented 10 months ago

For, applicationEventDate, When the ApplicationEventCode .is DISR: Logic : disbursementSchedule.disbursementDate - 5 cut off date for disbusement)

ann-aot commented 10 months ago

For, applicationEventDate, When the ApplicationEventCode .is DISE: logic: if there are multiple feedback error, take any random one's updatedAt

ann-aot commented 10 months ago

Removed below AC -