One planned operation of a finished production order (productiehistorie): the final pre-calculation of an operation. It has no navigation to its assembly: join HistoricProductionOrderAssemblies on historic_production_order_header_id and historic_production_order_assembly_id, for calculation_quantity.
Label in Fledge: VC-subbewerkingen historie
| URL | https://odata-api.fledge.nl/v2-8/HistoricPreCalculationSubOperations |
|---|---|
| Key | administration_idhistoric_production_order_assembly_idhistoric_production_order_header_idhistoric_production_order_pre_calculation_sub_operation_idmain_operation |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIEBEHEER |
| Scopes | FLEDGE_PORTAL |
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/HistoricPreCalculationSubOperations" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=historic_production_order_assembly_id,historic_production_order_header_id,historic_production_order_pre_calculation_sub_operation_id,main_operation,date_ready,decription,has_setting_code' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/HistoricPreCalculationSubOperations');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'historic_production_order_assembly_id,historic_production_order_header_id,historic_production_order_pre_calculation_sub_operation_id,main_operation,date_ready,decription,has_setting_code');
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/HistoricPreCalculationSubOperations" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("historic_production_order_assembly_id,historic_production_order_header_id,historic_production_order_pre_calculation_sub_operation_id,main_operation,date_ready,decription,has_setting_code"),
"$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/HistoricPreCalculationSubOperations(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_pre_calculation_sub_operation_id={historic_production_order_pre_calculation_sub_operation_id},main_operation={main_operation})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
historic_production_order_header_idkey | String | Ordernummer |
historic_production_order_assembly_idkey | Int32 | Schrap |
historic_production_order_pre_calculation_sub_operation_idkey | Int32 | Volgnummer |
main_operationkey | Int32 | Hoofdbewerking The main operation (main_operation_id elsewhere). |
date_ready | Date | Datum gereed When the operation was reported ready. |
decription | String | Omschrijving The description (spelled so). |
employee_signal_ready | Int32 | Medewerker gereedmelding |
file | String | Bestand |
has_setting_code | Boolean | Instelcode True for a set-up operation (instelbewerking), as has_adjustment_code on live operations. |
memo | String | Memo |
operation_duration | Decimal | Bewerkingstijd The same column as total_operation_duration on live operations: probably the planned time in seconds for one unit of the assembly. Multiply by the assembly's calculation_quantity, except a set-up operation (has_setting_code), which counts once. |
operation_duration_apiece | Decimal | Bewerkingstijd p/s: Bewerkingstijd per stuk The time of one run, in seconds. |
operation_sequence | Int32 | Bewerkings volgorde |
price | Decimal | Prijs |
quantity | Decimal | Aantal |
rate | Decimal | Tarief The hourly rate (tariff on live operations). |
sub_operation | Int32 | Subbewerking The sub operation (sub_operation_id elsewhere). |
time_norm | Decimal | Normtijd |
user_signal_ready | Int32 | Gebruiker gereedmelding |
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 |