# SubOperations

> An operation (bewerking) within a main operation; sub_operation_id is its code, 1 to 99 within the main operation, never changed.

Subject: Calculations.

An operation (bewerking) within a main operation; sub_operation_id is its code, 1 to 99 within the main operation, never changed. Screens print main and sub code together, such as 0712.

Label in Fledge: Subbewerkingen.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/SubOperations` |
| Key | `administration_id`, `main_operation_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, BEHEER |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/SubOperations?$filter=administration_id eq 1&$select=main_operation_id,sub_operation_id,active,billing_rate,setup_operation&$top=50
GET https://odata-api.fledge.nl/v2-8/SubOperations(administration_id=1,main_operation_id={main_operation_id},sub_operation_id={sub_operation_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratie |
| `main_operation_id` (key) | Int32, not null | Hoofdbewerkingsnummer |
| `sub_operation_id` (key) | Int32, not null | Subbewerkingsnummer |
| `active` | Boolean | Geeft aan of de bewerking nog actief (courant) is.. False when archived (gearchiveerd). An archived operation can't be booked on any more, but can have older bookings. |
| `billing_rate` | Decimal | Declarabel tarief. The hourly rate charged (declaratieprijs); on MainOperations the same is billable_rate. |
| `can_be_unmanned` | Boolean | Geeft aan of een machine onbemand kan draaien. |
| `code` | String | Bewerkingscode bestaande uit hoofdbewerking x(2) + subbewerking x(2). |
| `commercial_rate` | Decimal | Tarief commercieel: Commercieel tarief |
| `cost_operations_post_calculation` | Decimal | Kostprijstarief |
| `cost_operations_pre_calculation` | Decimal | Calculatietarief |
| `description` | String | Omschrijving |
| `early_or_late` | Boolean | Reden vl: Geeft aan of de subbewerking gebruikt moet worden als reden te vroeg/laat bij klokken met Benzingterminals. Alleen van toepassing als de uursoort 'Afwezig' is. |
| `is_day_of` | Boolean | Bewerking is snipperuur (J/N) |
| `is_doctors_visit` | Boolean | Bewerking geldt als artsbezoek (J/N) |
| `is_due_to_illness` | Boolean | Ziekte uur: Bewerking geldt als ziekte (J/N) |
| `is_man_hours` | Boolean | Geeft aan of uren geboekt op deze bewerking altijd manuren zijn of dat ze evt niet meedoen om aan ov te ontkomen. |
| `is_travel` | Boolean | Bewerking geldt als reisuur (J/N) |
| `maximum_units_planning` | Int32 | Max. eenheden: Maximaal aantal eenheden planning |
| `outsourced` | Boolean | Uitbesteding (ja/nee) |
| `planning_threshold` | Int32 | Planningsdrempel. Bij plannen tegen beschikbare cap. worden gaten die kleiner zijn dan de planningsdrempel niet opgevuld. |
| `production_code_id` | Int32 | Produktiecodenummer |
| `resource_id` | Int32 | Resource |
| `setup_operation` | Boolean | Instelbewerking. A set-up operation (instelbewerking); SubOperationLinks names the operations it prepares. |
| `setup_operation_factor_planning` | Int32 | Instelfactor voor planning. Als de verhouding van bewerkingstijd/insteltijd beneden deze factor ligt, dan niet verdelen over meerdere resources. |
| `startup` | Int32 | Aanloop |
| `time_remaining` | Boolean | Geeft aan of voor de bewerking tijdens het urenboeken om geschatte resttijd gevraagd moet worden of niet. |
| `type` | Int32 | Bewerkingssoort: Soort subbewerking: productief/ niet-productief/ afwezig /reisuren. Values: 1 = Productive; 2 = Not productive; 3 = Absent; 4 = Travel; 5 = Present |
| `weighting_percentage` | Int32 | Wegingsfactor subbewerking |
| `wind_down` | Int32 | Afloop |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `MainOperation` → [MainOperations](https://docs.fledge.nl/en/api/reference/MainOperations.md) (one)
- `PlanningResource` → [PlanningResources](https://docs.fledge.nl/en/api/reference/PlanningResources.md) (one)
- `ProductionCode` → [ProductionCodes](https://docs.fledge.nl/en/api/reference/ProductionCodes.md) (one)
- `EmployeeCompetences` → [EmployeeCompetences](https://docs.fledge.nl/en/api/reference/EmployeeCompetences.md) (many)
- `EmployeeOperationLinks` → [EmployeeOperationLinks](https://docs.fledge.nl/en/api/reference/EmployeeOperationLinks.md) (many)
- `PlanningOrderOperations` → [PlanningOrderOperations](https://docs.fledge.nl/en/api/reference/PlanningOrderOperations.md) (many)
- `PlanningPlannedCapacities` → [PlanningPlannedCapacities](https://docs.fledge.nl/en/api/reference/PlanningPlannedCapacities.md) (many)
- `PreCalculationSubOperations` → [PreCalculationSubOperations](https://docs.fledge.nl/en/api/reference/PreCalculationSubOperations.md) (many)
- `SubOperationLinks` → [SubOperationLinks](https://docs.fledge.nl/en/api/reference/SubOperationLinks.md) (many)

---

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