hris

package
v1.0.68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HRISservice

type HRISservice struct {
	AttendanceService           *attendance.AttendanceService
	AttendancePolicyService     *attendance_policy.AttendancePolicyService
	DeductionSettingService     *deduction_setting.DeductionSettingService
	EmployeeActivityService     *employee_activity.EmployeeActivityService
	EmployeeService             *employee.EmployeeService
	EmployeeOvertimeService     *employee_overtime.EmployeeOvertimeService
	EmployeeCashAdvanceService  *employee_cash_advance.EmployeeCashAdvanceService
	PayrollService              *payroll.PayrollService
	LeaveService                *leave.LeaveService
	ReimbursementService        *reimbursement.ReimbursementService
	ScheduleService             *schedule.ScheduleService
	EmployeeLoanService         *employee_loan.EmployeeLoanService
	JobTitleService             *employee.JobTitleService
	WorkShiftService            *work_shift.WorkShiftService
	EmployeeBusinessTripService *employee_business_trip.EmployeeBusinessTripService
	EmployeeResignationService  *employee_resignation.EmployeeResignationService
	// contains filtered or unexported fields
}

func NewHRISservice

func NewHRISservice(ctx *context.ERPContext) *HRISservice

NewHRISservice creates a new instance of HRISservice.

The service is created by providing a pointer to an ERPContext. The ERPContext is used for authentication and authorization purposes.

The service is created with all the services that are a part of the HRIS module. The services are created with the provided ERP context and the necessary dependencies.

The method also calls Migrate() on the service, which migrates the database schema to the latest version.

If the SkipMigration flag is set on the ERPContext, the Migrate() method is not called.

The service is then returned as a pointer to the caller.

func (*HRISservice) Migrate

func (s *HRISservice) Migrate() error

Migrate migrates the database schema to the latest version.

The method calls Migrate() on all the services that are a part of the HRIS module. If the SkipMigration flag is set on the ERPContext, the Migrate() method is not called.

The method returns an error if any of the services fail to migrate their database schema.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL