# PreCalculationSubOperations

> One planned operation of a production order assembly in the pre-calculation (voorcalculatie): a sub operation under a main operation, with its time and price.

Subject: Calculations.

One planned operation of a production order assembly in the pre-calculation (voorcalculatie): a sub operation under a main operation, with its time and price. Hours are booked on it (TimesheetEntries) and its bookings are in PostCalculationSubOperations.

Label in Fledge: Productieorder VC bewerkingen sub.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/PreCalculationSubOperations` |
| Key | `administration_id`, `main_operation_id`, `pre_calculation_sub_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, BASISAPP, URENPC |
| Write licenses | PRODUCTIE |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PreCalculationSubOperations?$filter=administration_id eq 1&$select=main_operation_id,pre_calculation_sub_operation_id,production_order_assembly_id,production_order_header_id,has_adjustment_code,is_finished_hours,operation_cluster_id&$top=50
GET https://odata-api.fledge.nl/v2-8/PreCalculationSubOperations(administration_id=1,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}')
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `main_operation_id` (key) | Int32, not null | Hoofdbewerkings nummer |
| `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 |
| `cluster_sequence` | Int32 | Volgorde binnen bewerkingscluster |
| `description` | String | Omschrijving |
| `employee_finished_id` | Int32 | Medewerker gereedmelding |
| `end_date_operation` | Date | Einddatum van de bewerking |
| `file` | String | Bestand |
| `finish_date` | Date | Datum gereedmelding |
| `has_adjustment_code` | Boolean | Instelcode (ja/nee). True for a set-up operation (instelbewerking), whose time doesn't depend on the quantity. |
| `is_finished_hours` | Boolean | Geeft aan of deze bewerking gereed is of niet.. True when the operation is done (uren gereed). Only true counts as done. |
| `is_outsourced` | Boolean | Uitbesteed (j/n) |
| `memo` | String | Memo |
| `operation_cluster_id` | String | Bewerkingsclusternummer. The operation cluster (OperationClusters) it is in, if any; cluster_sequence is its place. |
| `operation_duration_apiece` | Decimal | Bewerkingstijd p/st: Bewerkingstijd p/s. The time per piece, in seconds. |
| `operation_sequence` | Int32 | Geleidingsnummer: Bewerkings volgorde |
| `price` | Decimal | Prijs. The planned price for one unit of the assembly; multiply like total_operation_duration. |
| `quantity` | Decimal | Aantal |
| `quantity_finished` | Decimal | Aantal gereed. The quantity reported ready on this operation, added up over the ready reports. Before release 2026.16 the production monitor, and before 2026.17 the shop floor order card, sent a report twice, so older values can be double. |
| `sequence` | Int32 | Volgorde |
| `standard_time` | Decimal | Normtijd |
| `start_date` | Date | Begindatum van de bewerking |
| `sub_operation_id` | Int32 | Subbewerkingsnummer |
| `tariff` | Decimal | Tarief |
| `total_operation_duration` | Decimal | Bewerkingstijd totaal. The planned time in seconds for one unit of the assembly: multiply by the assembly's calculation_quantity for the order, except a set-up operation (has_adjustment_code), which counts once. |
| `user_that_has_finished` | Int32 | Gebruiker gereedmelding |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `ProductionOrderAssembly` → [ProductionOrderAssemblies](https://docs.fledge.nl/en/api/reference/ProductionOrderAssemblies.md) (one)
- `ProductionOrderHeaders` → [ProductionOrderHeaders](https://docs.fledge.nl/en/api/reference/ProductionOrderHeaders.md) (one)
- `SubOperation` → [SubOperations](https://docs.fledge.nl/en/api/reference/SubOperations.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)
- `EmployeeOperationLinks` → [EmployeeOperationLinks](https://docs.fledge.nl/en/api/reference/EmployeeOperationLinks.md) (many)
- `PostCalculationSubOperations` → [PostCalculationSubOperations](https://docs.fledge.nl/en/api/reference/PostCalculationSubOperations.md) (many)
- `PreCalculationSubOperationLinks` → [PreCalculationSubOperationLinks](https://docs.fledge.nl/en/api/reference/PreCalculationSubOperationLinks.md) (many)
- `TimesheetEntries` → [TimesheetEntries](https://docs.fledge.nl/en/api/reference/TimesheetEntries.md) (many)

## Actions

- `POST PreCalculationSubOperations(administration_id=1,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}')/markReady` — body: `is_finished_hours` Boolean; `quantity` Decimal — returns PreCalculationSubOperation

---

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