employeereport

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmployeeReport

type EmployeeReport struct {
	controller.BaseController
	// Start is the first day of the month
	Start time.Time
	// Stop is the last day of the month
	Stop            time.Time
	Employee        model.Employee
	Contracts       model.ContractList
	Attendances     model.AttendanceList
	Leaves          odoo.List[model.Leave]
	PreviousPayslip *model.Payslip
	NextPayslip     *model.Payslip

	Result timesheet.Report
}

type ReportController

type ReportController struct {
	controller.BaseController
	Input reportconfig.ReportRequest
	// contains filtered or unexported fields
}

func NewEmployeeReportController

func NewEmployeeReportController(ctx *controller.BaseController) *ReportController

func (*ReportController) DisplayEmployeeReport

func (c *ReportController) DisplayEmployeeReport() error

DisplayEmployeeReport GET /report/employees/:year/:month

type UpdatePayslipController added in v0.11.0

type UpdatePayslipController struct {
	controller.BaseController
	Input       UpdateRequest
	NextPayslip *model.Payslip
	Employee    *model.Employee
}

func NewUpdatePayslipController added in v0.11.0

func NewUpdatePayslipController(ctx *controller.BaseController) *UpdatePayslipController

func (*UpdatePayslipController) UpdatePayslipOfEmployee added in v0.11.0

func (c *UpdatePayslipController) UpdatePayslipOfEmployee() error

UpdatePayslipOfEmployee POST /report/employee/:employee/:year/:month

type UpdateRequest added in v0.11.0

type UpdateRequest struct {
	reportconfig.BaseReportRequest
	Overtime   string `form:"overtime"`
	EmployeeID int    `param:"employee"`
}

func (*UpdateRequest) FromRequest added in v0.11.0

func (i *UpdateRequest) FromRequest(e echo.Context) error

FromRequest parses the properties based on the given request echo.Context.

type UpdateResponse added in v0.11.0

type UpdateResponse struct {
	ErrorMessage string          `json:"errorMessage"`
	Overtime     string          `json:"overtime"`
	Employee     *model.Employee `json:"employee,omitempty"`
}

Jump to

Keyboard shortcuts

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