One planned operation of a production order assembly in the pre-calculation (voorcalculatie): a sub operation under a main operation, with its time and price. Hours are booked on it (TimesheetEntries) and its bookings are in PostCalculationSubOperations.

Label in Fledge: Productieorder VC bewerkingen sub

URLhttps://odata-api.fledge.nl/v2-8/PreCalculationSubOperations
Keyadministration_idmain_operation_idpre_calculation_sub_operation_idproduction_order_assembly_idproduction_order_header_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPPURENPC
Write licensesPRODUCTIE
ScopesFLEDGE_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/PreCalculationSubOperations" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=main_operation_id,pre_calculation_sub_operation_id,production_order_assembly_id,production_order_header_id,has_adjustment_code,is_finished_hours,operation_cluster_id' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/PreCalculationSubOperations');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'main_operation_id,pre_calculation_sub_operation_id,production_order_assembly_id,production_order_header_id,has_adjustment_code,is_finished_hours,operation_cluster_id');
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/PreCalculationSubOperations" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("main_operation_id,pre_calculation_sub_operation_id,production_order_assembly_id,production_order_header_id,has_adjustment_code,is_finished_hours,operation_cluster_id"),
    "$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/PreCalculationSubOperations(administration_id=1,main_operation_id={main_operation_id},pre_calculation_sub_operation_id={pre_calculation_sub_operation_id},production_order_assembly_id={production_order_assembly_id},production_order_header_id='{production_order_header_id}')

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
main_operation_idkeyInt32Hoofdbewerkings nummer
pre_calculation_sub_operation_idkeyInt32Volgnummer
production_order_header_idkeyStringOrder nummer
production_order_assembly_idkeyInt32Schrapnummer
cluster_sequenceInt32Volgorde binnen bewerkingscluster
descriptionStringOmschrijving
employee_finished_idInt32Medewerker gereedmelding
end_date_operationDateEinddatum van de bewerking
fileStringBestand
finish_dateDateDatum gereedmelding
has_adjustment_codeBooleanInstelcode (ja/nee)

True for a set-up operation (instelbewerking), whose time doesn't depend on the quantity.

is_finished_hoursBooleanGeeft aan of deze bewerking gereed is of niet.

True when the operation is done (uren gereed). Only true counts as done.

is_outsourcedBooleanUitbesteed (j/n)
memoStringMemo
operation_cluster_idStringBewerkingsclusternummer

The operation cluster (OperationClusters) it is in, if any; cluster_sequence is its place.

operation_duration_apieceDecimalBewerkingstijd p/st: Bewerkingstijd p/s

The time per piece, in seconds.

operation_sequenceInt32Geleidingsnummer: Bewerkings volgorde
priceDecimalPrijs

The planned price for one unit of the assembly; multiply like total_operation_duration.

quantityDecimalAantal
quantity_finishedDecimalAantal gereed

The quantity reported ready on this operation, added up over the ready reports. Before release 2026.16 the production monitor, and before 2026.17 the shop floor order card, sent a report twice, so older values can be double.

sequenceInt32Volgorde
standard_timeDecimalNormtijd
start_dateDateBegindatum van de bewerking
sub_operation_idInt32Subbewerkingsnummer
tariffDecimalTarief
total_operation_durationDecimalBewerkingstijd totaal

The planned time in seconds for one unit of the assembly: multiply by the assembly's calculation_quantity for the order, except a set-up operation (has_adjustment_code), which counts once.

user_that_has_finishedInt32Gebruiker 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
ProductionOrderAssemblyProductionOrderAssembliesone
ProductionOrderHeadersProductionOrderHeadersone
SubOperationSubOperationsone
DocumentLinksDocumentLinksmany
EmployeeOperationLinksEmployeeOperationLinksmany
PostCalculationSubOperationsPostCalculationSubOperationsmany
PreCalculationSubOperationLinksPreCalculationSubOperationLinksmany
TimesheetEntriesTimesheetEntriesmany

Actions

markReady

POST https://odata-api.fledge.nl/v2-8/PreCalculationSubOperations(administration_id=1,main_operation_id={main_operation_id},pre_calculation_sub_operation_id={pre_calculation_sub_operation_id},production_order_assembly_id={production_order_assembly_id},production_order_header_id='{production_order_header_id}')/markReady
  • is_finished_hours Boolean
  • quantity Decimal

Returns PreCalculationSubOperation

Licenses: BASISAPP, PRODUCTIE

Wingman