overtimereport

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigController

type ConfigController struct {
	controller.Context
	// contains filtered or unexported fields
}

func NewConfigController

func NewConfigController(ctx *controller.Context) *ConfigController

func (*ConfigController) ShowConfigurationForm

func (c *ConfigController) ShowConfigurationForm() error

type ConfigView

type ConfigView struct {
}

func (*ConfigView) GetConfigurationValues

func (v *ConfigView) GetConfigurationValues() controller.Values

type ReportController

type ReportController struct {
	controller.Context
	Input       ReportRequest
	Employee    *odoo.Employee
	ReportView  *reportView
	Contracts   odoo.ContractList
	Attendances []odoo.Attendance
	Leaves      []odoo.Leave

	Payslip *odoo.Payslip
	// contains filtered or unexported fields
}

func NewReportController

func NewReportController(ctx *controller.Context) *ReportController

func (*ReportController) DisplayOvertimeReport

func (c *ReportController) DisplayOvertimeReport() error

DisplayOvertimeReport GET /report/:id/:year/:month

func (*ReportController) ProcessInput

func (c *ReportController) ProcessInput() error

type ReportRequest

type ReportRequest struct {
	Year              int    `param:"year" form:"year"`
	Month             int    `param:"month" form:"month"`
	SearchUser        string `form:"username"`
	SearchUserEnabled bool
	EmployeeID        int `param:"employee"`
}

func (*ReportRequest) FromRequest

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

Jump to

Keyboard shortcuts

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