CreateLeaveAllocationsInput
Input for creating a new leave allocation for one or more employees at once
input CreateLeaveAllocationsInput {
absenceTypeId: OdooID!
designation: String!
employeeIds: [EmployeeID!]!
numberOfDays: Float!
residentialParkId: ResidentialParkID!
validFrom: Date!
validTo: Date
}
Fields
CreateLeaveAllocationsInput.absenceTypeId ● OdooID! non-null scalar
Leave type that the allocation applies to
CreateLeaveAllocationsInput.designation ● String! non-null scalar
Designation (Bezeichnung) of the leave allocation. Written to Odoo as the description of the allocation record; doubles as the justification for the entitlement.
CreateLeaveAllocationsInput.employeeIds ● [EmployeeID!]! non-null scalar
Employees that the allocation applies to. One independent leave allocation record is created per employee.
CreateLeaveAllocationsInput.numberOfDays ● Float! non-null scalar
Total number of allocated days. Fractional for half-day or hour based absence types.
CreateLeaveAllocationsInput.residentialParkId ● ResidentialParkID! non-null scalar
Residential Park that all employees in employeeIds are assigned to. Used to scope the mutation to a single park for authorization.
CreateLeaveAllocationsInput.validFrom ● Date! non-null scalar
Start of the leave allocation's validity
CreateLeaveAllocationsInput.validTo ● Date scalar
End of the leave allocation's validity. Optional; leaving it empty creates an open-ended entitlement ("unbegrenzt").
Member Of
createLeaveAllocations mutation