Skip to main content

UpdateEmployeeContractInput

Input for the updating a new employee contract

input UpdateEmployeeContractInput {
employeeContractId: EmployeeContractID!
employeeId: EmployeeID!
endDate: Date
endLendingRequestIds: [LendingRequestID!]!
jobPositionId: OdooID
managerId: EmployeeID
payrollStructureId: OdooID
removeShiftElementIds: [ShiftElementID!]!
startDate: Date!
status: ContractStatus
typeId: OdooID!
unassignTourIds: [TargetTourID!]!
workScheduleId: OdooID!
}

Fields​

UpdateEmployeeContractInput.employeeContractId ● EmployeeContractID! non-null scalar​

ID of the employee contract to edit

UpdateEmployeeContractInput.employeeId ● EmployeeID! non-null scalar​

ID of the employee

UpdateEmployeeContractInput.endDate ● Date scalar​

End date of the contract. Optional, the contract can also be indefinite

UpdateEmployeeContractInput.endLendingRequestIds ● [LendingRequestID!]! non-null scalar​

The lending requests to end, as employeeContractDateChangeImpact listed them in lendings: the accepted lendings of the employee to another park and the pending offers of the employee. Only these are ended; a different set is refused like unassignTourIds.

UpdateEmployeeContractInput.jobPositionId ● OdooID scalar​

Job position of the created contract

UpdateEmployeeContractInput.managerId ● EmployeeID scalar​

Reference to the manager of the employee

UpdateEmployeeContractInput.payrollStructureId ● OdooID scalar​

How is the employee's payroll structured

UpdateEmployeeContractInput.removeShiftElementIds ● [ShiftElementID!]! non-null scalar​

The shifts to remove from the live shift plan, as employeeContractDateChangeImpact listed them in shifts. Only these shifts are removed; a different set is refused like unassignTourIds.

UpdateEmployeeContractInput.startDate ● Date! non-null scalar​

Start date of the contract

UpdateEmployeeContractInput.status ● ContractStatus enum​

Only CANCEL is applied as given. Any other status, or none, is derived from the dates: a contract that has ended is closed, one that has started is open, a future one is a draft.

UpdateEmployeeContractInput.typeId ● OdooID! non-null scalar​

Type of the contract (comes from Odoo)

UpdateEmployeeContractInput.unassignTourIds ● [TargetTourID!]! non-null scalar​

The open tours to unassign the employee from, as employeeContractDateChangeImpact listed them in openTours. Only these tours are unassigned. When the new dates would unassign the employee from a different set of tours — none confirmed, or the tours changed since the preview — the change is refused with CONTRACT_HAS_OPEN_ASSIGNMENTS.

UpdateEmployeeContractInput.workScheduleId ● OdooID! non-null scalar​

Structure of the employee's weekly working schedule

Member Of​

updateEmployeeContract mutation