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

URLhttps://odata-api.fledge.nl/v2-8/HistoricPreCalculationSubOperations
Keyadministration_idhistoric_production_order_assembly_idhistoric_production_order_header_idhistoric_production_order_pre_calculation_sub_operation_idmain_operation
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesPRODUCTIEBEHEER
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratienummer
historic_production_order_header_idkeyStringOrdernummer
historic_production_order_assembly_idkeyInt32Schrap
historic_production_order_pre_calculation_sub_operation_idkeyInt32Volgnummer
main_operationkeyInt32Hoofdbewerking

The main operation (main_operation_id elsewhere).

date_readyDateDatum gereed

When the operation was reported ready.

decriptionStringOmschrijving

The description (spelled so).

employee_signal_readyInt32Medewerker gereedmelding
fileStringBestand
has_setting_codeBooleanInstelcode

True for a set-up operation (instelbewerking), as has_adjustment_code on live operations.

memoStringMemo
operation_durationDecimalBewerkingstijd

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_apieceDecimalBewerkingstijd p/s: Bewerkingstijd per stuk

The time of one run, in seconds.

operation_sequenceInt32Bewerkings volgorde
priceDecimalPrijs
quantityDecimalAantal
rateDecimalTarief

The hourly rate (tariff on live operations).

sub_operationInt32Subbewerking

The sub operation (sub_operation_id elsewhere).

time_normDecimalNormtijd
user_signal_readyInt32Gebruiker 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.

NavigationEntity set
AdministrationAdministrationsone
Wingman