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.
Click to show internal directories.
Click to hide internal directories.