Skip to content

Commit 811bb9f

Browse files
committed
Handling STA other like STA YukonU but fixing the request type
1 parent 3d0cb31 commit 811bb9f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/web/src/components/application/assessmentType.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const assessmentComponentList = {
2929
29: { component: CSGD, props: {year_to_compare: 2017, } }, // Grant for Students with Permanent Disabilities
3030
32: { component: CSGFTDEP, props: { year_to_compare: 2017 } }, // Grant for Students with Dependents FT
3131
35: { component: CSGFT, props: { request_type_id: 4 } }, // Grant for Full-time Students
32+
46: { component: TrainingAllowance, props: { status_id: 6, } }, // Student Training Allowance
3233
};
3334

3435
const deadlineCheck = async (applicationId, requestTypeId) => {

src/web/src/components/application/sfa-funding-requests/student-training-allowance/StudentTrainingAllowance.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,13 @@ export default {
281281
}
282282
283283
try {
284+
// if alkan campus, then request_type_id = 46
285+
let request_type_id = 1;
286+
if (this.application.institution_campus_id == 4664) request_type_id = 46;
287+
284288
const resInsert = await axios.post(APPLICATION_URL + `/${this.application.id}/status`, {
285289
status_id: 3,
286-
request_type_id: 1,
290+
request_type_id,
287291
received_date: new Date(),
288292
});
289293
const message = resInsert?.data?.messages[0];

0 commit comments

Comments
 (0)