Skip to content

Commit

Permalink
Merge pull request #320 from icefoganalytics/test
Browse files Browse the repository at this point in the history
Fix for Dep Abroad
  • Loading branch information
datajohnson authored Nov 25, 2024
2 parents 354578b + f68da66 commit e651695
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/api/repositories/assessment/assessment-cslft-repository-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ export class AssessmentCslftRepositoryV2 {
})
.first();

if (!this.dependentAllowance) {
this.dependentAllowance = await this.db("sfa.student_living_allowance")
.where({
academic_year_id: this.application.academic_year_id,
province_id: 3, // use Yukon
student_category_id: depCategory.id,
})
.first();
}

let sdaCategory = this.studentCategories.find((c) => c.code == "SDA");

this.sdaAllowance = await this.db("sfa.student_living_allowance")
Expand Down

0 comments on commit e651695

Please sign in to comment.