30 lines
457 B
Go
30 lines
457 B
Go
package payroll
|
|
|
|
import (
|
|
"business-engine/internal/database"
|
|
)
|
|
|
|
type PayrollInput struct {
|
|
database.ListActiveEmployeesRow
|
|
|
|
WorkSummary struct {
|
|
Days int64
|
|
Hours float64
|
|
Minutes int64
|
|
}
|
|
|
|
SicknessSummary struct {
|
|
Days int64
|
|
Hours float64
|
|
Minutes int64
|
|
}
|
|
|
|
WorkTime []database.WorkTime
|
|
}
|
|
|
|
func NewPayrollInput(employee database.ListActiveEmployeesRow) PayrollInput {
|
|
return PayrollInput{
|
|
ListActiveEmployeesRow: employee,
|
|
}
|
|
}
|