Skip to content

Commit 841b968

Browse files
authored
Merge pull request #339 from icefoganalytics/test
Update nars-v17-2-reporting-service.ts
2 parents 69db693 + 9a0c566 commit 841b968

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/api/services/admin/nars-v17-2-reporting-service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ export class NarsV17_2ReportingService {
248248
//stud_sp_cost_other -= stud_sp_cost_computers; this is causing costs to be negative. Other doesn't include computers, so not sure why it's being removed
249249

250250
let req_need = app.csl_request_amount;
251-
let tot_ass_res = app.student_expected_contribution ?? 0;
252251

253252
if (app.is_csg_only) req_need = 0;
254253
else if (app.is_csl_full_amount) req_need = Math.min(52, app.study_weeks) * 300; // should be 300 for 2023
@@ -258,7 +257,9 @@ export class NarsV17_2ReportingService {
258257
const assessment = await db("sfa.assessment").where({ id: app.id }).first();
259258
const a2 = await repo.loadExisting(assessment, appId?.application_id);
260259
let parent_cont = a2?.parent_contribution_override ?? a2?.parent_contribution ?? 0;
261-
tot_ass_res = a2?.total_contribution ?? 0;
260+
let tot_ass_res = a2?.total_contribution ?? 0;
261+
262+
if (!isNumber(tot_ass_res)) console.log("STUDENT", tot_ass_res, appId);
262263

263264
let row = new Row();
264265
row.push(new Column("loanyear", `${this.year}${this.year + 1}`, " ", 8));

0 commit comments

Comments
 (0)