Ministry: Cancel Application After COE and before Disbursement
- Dominant language
- TypeScript
- Stars
- 29
- Forks
- 15
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 40
Description
As a Ministry User with full access** I want** to be able to Cancel Application and all Associated Disbursements after COE and Before eCert is Generated. So that student will not receive money and can potentially resubmit another application without running into study overlap (PT to FT switch and vice versa).
## Acceptance Criteria:
## Cancel Button and Cancel application form
- [ ] After application has COE approved (application at completed status) and before the FIRST eCert is generated, enable "Cancel" button in Actions Column on Ministry Portal. Instituion and Student should not be able to see "Cancel" button in their view.
- [ ] After eCert is generated, disable "Cancel" button in Actions Column from Ministry Portal View
- [ ] Add student-cancel-application role in KeyCloak
- [ ] Once Ministry User clicks "Cancel" button, a pop-up screen with the warning and a Notes section is displayed
Please ignore text in Mock up, this is the final language:
> Cancel application
> Canceling an application will stop financial aid disbursement and cannot be reversed. Are you sure you would like to proceed?
Two buttons: "No" and "Cancel application now"
- [ ] Notes must be a mandatory field

## Impact
- [ ] Once Ministry User clicks "Cancel" button, the application status changes to cancelled and system is instructed not to generate eCert (same functionality as if student cancelled)
- [ ] The system displays a new application Student tracker card
Text displayed on Student Tracker Card (ignore text in mock up):
> StudentAid BC cancelled your application and all disbursements associated with it on Nov 01, 2024. If you have any questions regarding the cancellation of your application, please contact StudentAidBC.

- [ ] The system sends an email to a Student notifying them that the application was cancelled ONLY when cancelled by Ministry.
Template Id: `5681a13e-1082-4b18-8ed6-d47fc66a95e2`

Additional Context:
**Current Behaviour**
- Student with incomplete application can cancel application --> any disbursements associated with assessment are cancelled --> any COE request associated with disbursements is cancelled
- Student with complete application cannot cancel their application themselves
- Student with complete application cannot have ministry cancel their application
- Student with complete application can have a full hold restriction applied on their account at any time, preventing them from getting funds, but this will leave an application in the system and study overlap check will block subsequent apps for that program year (undesirable)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.