Skip to main content Link Search Menu Expand Document (external link)

admin.proforma.go

  • This contains function related to proforma in applications.

#1

func getProformaHandler

Here pid refers to Proforma ID

  • Used to get Proforma from pid.

Proforma is fetched in a struct of type Proforma using the function:

func fetchProforma(ctx, pid, &jp)
  • This takes pid and a struct of type Proforma as parameters.

Mentioned in application/db.proforma

#2

func getProformaByCompanyHandler

Here cid refers to Company ID

  • Used to get Proforma from cid.

All the proformas are fetched using the function:

func fetchProformasByCompanyForAdmin(ctx, cid, &jps)
  • This takes cid and an empty array of type Proforma as parameters.

Mentioned in application/db.proforma

#3

func getAllProformasHandler

Here rid refers to Recruitment Cycle ID

  • Used to get proformas from rid. All the proformas are fetched using the function:
    func fetchProformasByRCForAdmin(ctx, rid, &jps)
    
  • This takes rid and an empty array of type Proforma as parameters.

Mentioned in application/db.proforma

#4

func putProformaHandler
  • Used to update proformas. First the old proforma is fetched using the pid of the same using the function:
    func fetchProforma(ctx, jp.ID, &oldJp)
    

This is done only for publishing a notice about the change, where we require RCID of the old proforma.

Mentioned in application/db.proforma

Then, the proforma is updated using the function:

func updateProforma(ctx, &jp)
  • This takes a struct of type Proforma as parameter.

Mentioned in application/db.proforma

And finally, a notice is published regarding the change.

#5

func hideProformaHandler
  • Used to hide proformas.

The proforma is hidden using the function:

func updateHideProforma(ctx, &jp)
  • This takes a struct of type Proforma as parameter.

Mentioned in application/db.proforma

#6

func postProformaHandler
  • Used to create proformas.

The proforma is created using the function:

func createProforma(ctx, &jp)
  • This takes a struct of type Proforma as parameter.

Mentioned in application/db.proforma

#7

func deleteProformaHandler
  • Used to delete proformas.

The proforma is deleted using the function:

func deleteProforma(ctx, pid)
  • This takes pid as parameter.

Mentioned in application/db.proforma