# HistoricProductionOrderPostCalculationBuyMakeParts

> Productieorder historie NC koop-/maakdelen

Subject: Production.

Productieorder historie NC koop-/maakdelen

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/HistoricProductionOrderPostCalculationBuyMakeParts` |
| Key | `administration_id`, `historic_production_order_assembly_id`, `historic_production_order_header_id`, `historic_production_order_post_calculation_buy_make_operation` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIE, BEHEER |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/HistoricProductionOrderPostCalculationBuyMakeParts?$filter=administration_id eq 1&$select=historic_production_order_assembly_id,historic_production_order_header_id,historic_production_order_post_calculation_buy_make_operation,cost_price,date,description_1&$top=50
GET https://odata-api.fledge.nl/v2-8/HistoricProductionOrderPostCalculationBuyMakeParts(administration_id=1,historic_production_order_assembly_id={historic_production_order_assembly_id},historic_production_order_header_id='{historic_production_order_header_id}',historic_production_order_post_calculation_buy_make_operation={historic_production_order_post_calculation_buy_make_operation})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `historic_production_order_post_calculation_buy_make_operation` (key) | Int32, not null | Volgnummer |
| `historic_production_order_header_id` (key) | String, not null | Ordernummer |
| `historic_production_order_assembly_id` (key) | Int32, not null | Schrap |
| `article_id` | String | Artikel |
| `batch_id` | String | Lotnummer/partijregistratie |
| `cost_price` | Decimal | Kostprijs |
| `creditor_id` | Int32 | Leverancier |
| `custom_field_1` | String | Vrije veld 1 |
| `custom_field_10` | String | Vrije veld 10 |
| `custom_field_11` | String | Vrije veld 11 |
| `custom_field_12` | String | Vrije veld 12 |
| `custom_field_13` | String | Vrije veld 13 |
| `custom_field_14` | String | Vrije veld 14 |
| `custom_field_15` | String | Vrije veld 15 |
| `custom_field_16` | String | Vrij veld 16 |
| `custom_field_17` | String | Vrij veld 17 |
| `custom_field_18` | String | Vrij veld 18 |
| `custom_field_19` | String | Vrij veld 19 |
| `custom_field_2` | String | Vrije veld 2 |
| `custom_field_20` | String | Vrij veld 20 |
| `custom_field_21` | String | Vrij veld 21 |
| `custom_field_22` | String | Vrij veld 22 |
| `custom_field_23` | String | Vrij veld 23 |
| `custom_field_24` | String | Vrij veld 24 |
| `custom_field_25` | String | Vrij veld 25 |
| `custom_field_3` | String | Vrije veld 3 |
| `custom_field_4` | String | Vrije veld 4 |
| `custom_field_5` | String | Vrije veld 5 |
| `custom_field_6` | String | Vrije veld 6 |
| `custom_field_7` | String | Vrije veld 7 |
| `custom_field_8` | String | Vrije veld 8 |
| `custom_field_9` | String | Vrije veld 9 |
| `custom_fields_id` | Int32 | Volgnummer |
| `date` | Date | Datum |
| `delivery_text` | Int32 | Artikel/Tekst |
| `description_1` | String | Omschrijving |
| `description_2` | String | Omschrijving |
| `description_3` | String | Omschrijving |
| `financial_period_id` | Int32 | Periode |
| `financial_year` | Int32 | Boekjaar |
| `historic_pre_calculation_buy_make_part_id` | Int32 | Volgnummer |
| `memo` | String | Memo |
| `order_code` | String | Bestelcode |
| `pos_number` | String | Pos-nummer |
| `post_calculation_amount` | Decimal | Bedrag NC |
| `price_hours` | Decimal | Kostprijs uren |
| `price_total` | Decimal | Totaal kostprijs |
| `production_order_assembly_id` | Int32 | Productie schrap |
| `production_order_header_id_origin` | String | Order herkomst: Productieorder waarop het maakdeel geproduceerd is. |
| `purchase_order_id` | String | Inkooporder |
| `purchase_order_line_id` | Int32 | Inkooporder regel |
| `quantity` | Decimal | Aantal |
| `sales_group_id` | Int32 | Omzetgroep |
| `sales_price` | Decimal | Verkoopprijs |
| `source` | Int32 | Herkomst |
| `storage` | Decimal | Opslag |
| `total_price_hours` | Decimal | Totaal kostprijs uren |
| `warehouse_address_id` | Int32 | Adres |
| `warehouse_aisle_id` | Int32 | Magazijn |
| `warehouse_shelf_id` | Int32 | Locatie |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `HistoricPreCalculationBuyMakePart` → [HistoricPreCalculationBuyMakeParts](https://docs.fledge.nl/en/api/reference/HistoricPreCalculationBuyMakeParts.md) (one)
- `HistoricProductionOrderAssembly` → [HistoricProductionOrderAssemblies](https://docs.fledge.nl/en/api/reference/HistoricProductionOrderAssemblies.md) (one)
- `HistoricProductionOrderHeader` → [HistoricProductionOrderHeaders](https://docs.fledge.nl/en/api/reference/HistoricProductionOrderHeaders.md) (one)

---

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