# PlanningOrderOperations

> One operation in the planning module of the old ERP: an operation of a production order assembly scheduled on a resource.

Subject: Planning.

One operation in the planning module of the old ERP: an operation of a production order assembly scheduled on a resource. Only filled when the administration uses that module; the web app's plan board plans PreCalculationSubOperations instead.

Label in Fledge: Planning orders bewerkingen.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/PlanningOrderOperations` |
| Key | `administration_id`, `planning_order_header_id`, `planning_order_operation_id`, `production_order_assembly_id`, `production_order_header_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIE |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PlanningOrderOperations?$filter=administration_id eq 1&$select=planning_order_header_id,planning_order_operation_id,production_order_assembly_id,production_order_header_id,begin_date,begin_time,end_date&$top=50
GET https://odata-api.fledge.nl/v2-8/PlanningOrderOperations(administration_id=1,planning_order_header_id={planning_order_header_id},planning_order_operation_id={planning_order_operation_id},production_order_assembly_id={production_order_assembly_id},production_order_header_id='{production_order_header_id}')
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `planning_order_operation_id` (key) | Int32, not null | Bewerkingsnummer |
| `planning_order_header_id` (key) | Int32, not null | Ordernummer |
| `production_order_header_id` (key) | String, not null | Order nummer |
| `production_order_assembly_id` (key) | Int32, not null | Schrapnummer |
| `begin_date` | Date | Begin datum: Begindatum. The planned start date. |
| `begin_time` | Int32 | Begin tijd. The planned start time, in seconds after midnight. |
| `change` | Int32 | Wijzigingsindicator. |
| `completed` | Int32 | Afgewerkt: Status van de bewerking |
| `description` | String | Omschrijving |
| `end_date` | Date | Eind datum. The planned end date. |
| `ending` | Int32 | Afloop |
| `end_time` | Int32 | Eind tijd. The planned end time, in seconds after midnight. |
| `fixed` | Boolean | Vastgezet. Pinned, so the planner doesn't move it. |
| `hours_code` | Int32 | Urenkode |
| `is_milestone` | Boolean | Mijlpaal |
| `is_outsourced` | Boolean | Uitbesteding |
| `is_planned` | Boolean | Gepland |
| `is_setup` | Boolean | Geeft aan of het wat de planningsmodule betreft om een instelbewerking gaat of niet. Instelkode van pbws is hiervoor niet voldoende. |
| `main_operation` | Int32 | Hoofdbewerkings nummer. The main operation (main_operation_id elsewhere). |
| `memo` | String | Memo veld |
| `operation_duration_post_calculation` | Int32 | Bewerkingstijd nacalculatie |
| `operation_duration_pre_calculation` | Decimal | Bewerkingstijd VC: Bewerkingstijd voorcalculatie |
| `operation_duration_update` | Decimal | Bewtijd gewijzigde planning: Bewerkingstijd gewijzigde planning |
| `operation_sequence` | Int32 | Geleidingsnummer |
| `operation_time_rest` | Decimal | Resttijd: Resterende bewerkingstijd |
| `planning_memo` | String | Memo planning |
| `planning_method` | String | Planmethode (B = beschikbare cap.;O = oneindige cap.). B plans against available capacity, O against infinite capacity. |
| `planning_resource_id` | Int32 | Resource |
| `pre_calculation_sub_operation_id` | Int32 | Volgnummer. The pre-calculation operation it plans, together with main_operation. |
| `production_code_id` | Int32 | Produktiecodenummer |
| `program_number` | String | Programma-nummer: Programmanummer |
| `run_up` | Int32 | Aanloop |
| `sequence` | Int32 | Volgorde |
| `setup_code` | Boolean | Instelkode |
| `sub_operation` | Int32 | Subbewerkingsnummer. The sub operation (sub_operation_id elsewhere). |
| `units` | Decimal | Aantal eenheden van de resource |

## 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)
- `PlanningOrderAssembly` → [PlanningOrderAssemblies](https://docs.fledge.nl/en/api/reference/PlanningOrderAssemblies.md) (one)
- `PlanningOrderHeader` → [PlanningOrderHeaders](https://docs.fledge.nl/en/api/reference/PlanningOrderHeaders.md) (one)
- `PlanningResource` → [PlanningResources](https://docs.fledge.nl/en/api/reference/PlanningResources.md) (one)
- `PreCalculationSubOperation` → [PreCalculationSubOperations](https://docs.fledge.nl/en/api/reference/PreCalculationSubOperations.md) (one)
- `ProductionCode` → [ProductionCodes](https://docs.fledge.nl/en/api/reference/ProductionCodes.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)
- `PlanningDailyPlannedCapacities` → [PlanningDailyPlannedCapacities](https://docs.fledge.nl/en/api/reference/PlanningDailyPlannedCapacities.md) (many)
- `PlanningOrderOperationInvomingLinks` → [PlanningOrderOperationLinks](https://docs.fledge.nl/en/api/reference/PlanningOrderOperationLinks.md) (many)
- `PlanningOrderOperationOutgoingLinks` → [PlanningOrderOperationLinks](https://docs.fledge.nl/en/api/reference/PlanningOrderOperationLinks.md) (many)

---

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