# HistoricProductionOrderHeaders

> A finished production order (productiehistorie), moved here when its root assembly was processed.

Subject: Production.

A finished production order (productiehistorie), moved here when its root assembly was processed. The key is the order's number. Its assemblies, with the final pre- and post-calculation, are in HistoricProductionOrderAssemblies.

Label in Fledge: Hist. productieorderheaders: Historische productieorderheaders.

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

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/HistoricProductionOrderHeaders?$filter=administration_id eq 1&$select=historic_production_order_header_id,debtor_id,historical_date,date_created&$top=50
GET https://odata-api.fledge.nl/v2-8/HistoricProductionOrderHeaders(administration_id=1,historic_production_order_header_id='{historic_production_order_header_id}')
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `historic_production_order_header_id` (key) | String, not null | Ordernummer |
| `article_id` | String | Artikel |
| `business_segment_id` | Int32 | Nummer |
| `created_by` | Int32 | User aanmaak van de order |
| `customer_reference` | String | Uw referentie |
| `date_created` | Date | Datum aanmaak van de order |
| `debtor_id` | String | Debiteur gekoppelde verkoop. The customer of the linked sales order. |
| `description_1` | String | Omschrijving |
| `description_2` | String | Omschrijving |
| `description_3` | String | Omschrijving |
| `drawing_number` | String | Tekeningnr.: Tekeningnummer |
| `financial_year` | Int32 | Boekjaar |
| `historical_date` | Date | Datum historie. When the order moved to history. |
| `memo` | String | Memo |
| `order_date` | Date | Datum order |
| `order_type_id` | Int32 | Ordersoort |
| `our_reference` | String | Onze referentie |
| `overrun_machine_time_post_calculation` | Decimal | Opslag machine uren NC |
| `overrun_manual_time_post_calculation` | Decimal | Opslag man uren NC |
| `overrun_material_post_calculation` | Decimal | Opslag materiaal NC |
| `overrun_material_pre_calculation` | Decimal | Opslag materiaal VC |
| `overrun_operation_pre_calculation` | Decimal | Opslag bewerking VC |
| `overrun_outsourcing_post_calculation` | Decimal | Opslag uitbesteding NC |
| `overrun_outsourcing_pre_calculation` | Decimal | Opslag uitbesteding VC |
| `overrun_purchase_part_post_calculation` | Decimal | Opslag koopdeel NC |
| `overrun_purchase_part_pre_calculation` | Decimal | Opslag koopdeel VC |
| `planning_date` | Date | Datum planning |
| `production_leader` | Int32 | Mannummer |
| `production_order_status_id` | Int32 | Status |
| `project_steps_id` | Int32 | Projectstapnummer |
| `relation_id` | Int32 | Relatienr. deb.: Relatienummer debiteur |
| `revision` | String | Revisie |
| `subsidy_regulation_id` | String | Code |
| `user_history` | Int32 | User historie |
| `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)
- `Article` → [Articles](https://docs.fledge.nl/en/api/reference/Articles.md) (one)
- `BusinessSegment` → [BusinessSegments](https://docs.fledge.nl/en/api/reference/BusinessSegments.md) (one)
- `ProductionOrderStatus` → [ProductionOrderStatuses](https://docs.fledge.nl/en/api/reference/ProductionOrderStatuses.md) (one)
- `ProjectLeader` → [Employees](https://docs.fledge.nl/en/api/reference/Employees.md) (one)
- `ProjectStep` → [ProjectSteps](https://docs.fledge.nl/en/api/reference/ProjectSteps.md) (one)
- `SubsidyScheme` → [SubsidySchemes](https://docs.fledge.nl/en/api/reference/SubsidySchemes.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)
- `HistoricSalesOrderLineStatuses` → [HistoricSalesOrderLineStatuses](https://docs.fledge.nl/en/api/reference/HistoricSalesOrderLineStatuses.md) (many)
- `HistoricSalesOrders` → [HistoricSalesOrders](https://docs.fledge.nl/en/api/reference/HistoricSalesOrders.md) (many)
- `ProductionOrderAssemblies` → [HistoricProductionOrderAssemblies](https://docs.fledge.nl/en/api/reference/HistoricProductionOrderAssemblies.md) (many)
- `SalesOrderLineStatuses` → [SalesOrderLineStatuses](https://docs.fledge.nl/en/api/reference/SalesOrderLineStatuses.md) (many)

---

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