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_idhistoric_production_order_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPP |
| Write licenses | PRODUCTIEBEHEER |
| Scopes | FLEDGE_PORTALFLEDGE_TERMINAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/HistoricProductionOrderHeaders" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=historic_production_order_header_id,debtor_id,historical_date,date_created' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/HistoricProductionOrderHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'historic_production_order_header_id,debtor_id,historical_date,date_created');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/HistoricProductionOrderHeaders" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("historic_production_order_header_id,debtor_id,historical_date,date_created"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
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_idkey | Int32 | Administratienummer |
historic_production_order_header_idkey | String | 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
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Article | Articles | one |
BusinessSegment | BusinessSegments | one |
ProductionOrderStatus | ProductionOrderStatuses | one |
ProjectLeader | Employees | one |
ProjectStep | ProjectSteps | one |
SubsidyScheme | SubsidySchemes | one |
DocumentLinks | DocumentLinks | many |
HistoricSalesOrderLineStatuses | HistoricSalesOrderLineStatuses | many |
HistoricSalesOrders | HistoricSalesOrders | many |
ProductionOrderAssemblies | HistoricProductionOrderAssemblies | many |
SalesOrderLineStatuses | SalesOrderLineStatuses | many |