Skip to content

Commit

Permalink
Merge pull request #175 from AkshatGupta15/main
Browse files Browse the repository at this point in the history
Refactor proforma query to include additional fields and Fixed Issue #145
  • Loading branch information
yashlm authored Oct 5, 2024
2 parents 456bbba + ed1e722 commit b00ea68
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions application/db.proforma.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,17 @@ func fetchProformaForStudent(ctx *gin.Context, pid uint, jp *Proforma) error {
"perks",
"package_details",
"bond_details",

"base",
"gross",
"joining_bonus",
"take_home",
"relocation_bonus",
"retention_bonus",
"package_details",
"bond_details",
"first_ctc",
"deductions",
).
First(jp)
return tx.Error
Expand Down
2 changes: 1 addition & 1 deletion rc/db.rc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

func fetchAllRCs(ctx *gin.Context, rc *[]RecruitmentCycle) error {
tx := db.WithContext(ctx).Find(rc)
tx := db.WithContext(ctx).Order("is_active DESC").Find(rc)
return tx.Error
}

Expand Down

0 comments on commit b00ea68

Please sign in to comment.