# EmployeeOperationLinks

> An employee planned on one operation line of a production order (pre-calculation sub operation).

Subject: Hours.

An employee planned on one operation line of a production order (pre-calculation sub operation).

Label in Fledge: Medewerker-bewerking-koppeling: Koppelingstabel tussen medewerker en vc-bewerking.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/EmployeeOperationLinks` |
| Key | `administration_id`, `employee_id`, `main_operation_id`, `pre_calculation_sub_operation_id`, `production_order_assembly_id`, `production_order_header_id`, `sub_operation_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, BASISAPP, URENPC |
| Write licenses | PRODUCTIE |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/EmployeeOperationLinks?$filter=administration_id eq 1&$select=employee_id,main_operation_id,pre_calculation_sub_operation_id,production_order_assembly_id,production_order_header_id,sub_operation_id,time_to_completion,total_booked,date_created&$top=50
GET https://odata-api.fledge.nl/v2-8/EmployeeOperationLinks(administration_id=1,employee_id={employee_id},main_operation_id={main_operation_id},pre_calculation_sub_operation_id={pre_calculation_sub_operation_id},production_order_assembly_id={production_order_assembly_id},production_order_header_id='{production_order_header_id}',sub_operation_id={sub_operation_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `employee_id` (key) | Int32, not null | Mannummer |
| `main_operation_id` (key) | Int32, not null | Hoofdbewerkings nummer |
| `sub_operation_id` (key) | Int32, not null | Subbewerkingsnummer |
| `pre_calculation_sub_operation_id` (key) | Int32, not null | Volgnummer |
| `production_order_header_id` (key) | String, not null | Order nummer |
| `production_order_assembly_id` (key) | Int32, not null | Schrapnummer |
| `date_created` | Date | Datum aanmaak |
| `date_maximum` | Date | Datum max.: Maximum datum |
| `date_minimum` | Date | Datum min.: Minimum datum |
| `date_updated` | Date | Datum wijzig |
| `pre_calculation_processing_time` | Decimal | Bewerkingstijd totaal |
| `time_to_completion` | Int32 | Time to completion (sec.). Remaining time in seconds, as stored. |
| `total_booked` | Int32 | Totaal aantal geboekte uren (sec.). Booked seconds, as stored; the Fledge API doesn't keep it up to date. Sum the TimesheetEntries instead. |
| `user_created` | Int32 | User aanmaak |
| `user_updated` | Int32 | User wijzig |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `Employee` → [Employees](https://docs.fledge.nl/en/api/reference/Employees.md) (one)
- `HistoricProductionOrderAssembly` → [HistoricProductionOrderAssemblies](https://docs.fledge.nl/en/api/reference/HistoricProductionOrderAssemblies.md) (one)
- `HistoricProductionOrderHeader` → [HistoricProductionOrderHeaders](https://docs.fledge.nl/en/api/reference/HistoricProductionOrderHeaders.md) (one)
- `MainOperation` → [MainOperations](https://docs.fledge.nl/en/api/reference/MainOperations.md) (one)
- `PreCalculationSubOperation` → [PreCalculationSubOperations](https://docs.fledge.nl/en/api/reference/PreCalculationSubOperations.md) (one)
- `ProductionOrderAssembly` → [ProductionOrderAssemblies](https://docs.fledge.nl/en/api/reference/ProductionOrderAssemblies.md) (one)
- `ProductionOrderHeader` → [ProductionOrderHeaders](https://docs.fledge.nl/en/api/reference/ProductionOrderHeaders.md) (one)
- `SubOperation` → [SubOperations](https://docs.fledge.nl/en/api/reference/SubOperations.md) (one)

---

Source: https://docs.fledge.nl/en/api/reference/EmployeeOperationLinks
