# PreCalculationMainOperations

> VC-hoofdbewerkingen productieorder

Subject: Calculations.

VC-hoofdbewerkingen productieorder

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

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PreCalculationMainOperations?$filter=administration_id eq 1&$select=main_operation_id,production_order_assembly_id,production_order_header_id,main_group_price,price_entry,setup_price_entry&$top=50
GET https://odata-api.fledge.nl/v2-8/PreCalculationMainOperations(administration_id=1,main_operation_id={main_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 |
| `production_order_header_id` (key) | String, not null | Order nummer |
| `production_order_assembly_id` (key) | Int32, not null | Schrapnummer |
| `main_group_price` | Decimal | Hoofdgroep prijs |
| `price_entry` | Decimal | Bewerkingsprijs ingave |
| `setup_price_entry` | Decimal | Instelprijs ingave |
| `setup_time` | Decimal | Insteltijd |
| `sub_group_price` | Decimal | Subgroep prijs |
| `time` | Decimal | Bewerkingstijd: Bewerkings tijd |

## 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)

---

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