# PostCalculationMainOperations

> Productieorder NC bewerkingen hoofd

Subject: Production.

Productieorder NC bewerkingen hoofd

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/PostCalculationMainOperations` |
| 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 |
| Write licenses | PRODUCTIE |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PostCalculationMainOperations?$filter=administration_id eq 1&$select=main_operation_id,production_order_assembly_id,production_order_header_id,amount_operation_post_calculation,amount_post_calculation,amount_setup_cost_post_calculation&$top=50
GET https://odata-api.fledge.nl/v2-8/PostCalculationMainOperations(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 |
| `amount_operation_post_calculation` | Decimal | Bedrag bew. NC: Bedrag bewerking NC |
| `amount_post_calculation` | Decimal | Bedrag nc |
| `amount_setup_cost_post_calculation` | Decimal | Bedrag instelkosten NC |
| `cost_price_operation` | Decimal | Kostprijs bew. |
| `cost_price_setup` | Decimal | Kostprijs instelkosten |
| `cost_price_total` | Decimal | Kostprijs totaal |
| `date` | Date | Datum |
| `is_blocked` | Boolean | Parkeren |
| `operation_duration` | Int32 | Bew.tijd: Bewerkingstijd |
| `operation_duration_man_hours` | Int32 | Bew. tijd man: Bewerkingstijd man |
| `setup_time` | Int32 | Insteltijd |
| `setup_time_man_hours` | Int32 | Insteltijd man |
| `status` | Int32 | Status |
| `is_dummy` | Boolean | Dummy vc |

## 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)
- `ProductionOrderAssembly` → [ProductionOrderAssemblies](https://docs.fledge.nl/en/api/reference/ProductionOrderAssemblies.md) (one)
- `ProductionOrderHeader` → [ProductionOrderHeaders](https://docs.fledge.nl/en/api/reference/ProductionOrderHeaders.md) (one)

---

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