student.proforma.go
- Contains student related functions for proforma.
#1
func getProformasForStudentHandler
- Used to get proformas using recruitment cycle id.
Student RCID is fetched using the function:
func getStudentRCID(ctx)
- Mentioned in application/util.student.middleware.
Here SID refers to Student RCID.
A student recruitment cycle is fetched using the funciton:
func FetchStudent(ctx, sid, &student)
- This takes SID and an empty array of type StudentRecruitmentCycle as parameters.
Here, SID refers to student RCID.
- Mentioned in rc/db.student.
Finally, the proformas are fetched using the function:
func fetchProformaForEligibleStudent(ctx, rid, &student, &jps)
- This takes RID , an empty array of type StudentRecruitmentCycle and an empty array of type Proforma as parameters.
Here, RID refers to recruitment cycle ID.
- Mentioned in application/db.proforma.
#2
func getProformaForStudentHandler
- Used to get a proforma using proforma id.
Proforma is fetched using the function:
func fetchProformaForStudent(ctx, pid, &jp)
- This takes PID and an empty array of type Proforma as parameters.
Here, PID refers to proforma ID.
- Mentioned in application/db.proforma.