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
| URL | https://odata-api.fledge.nl/v2-8/PreCalculationSubOperations |
|---|---|
| Key | administration_idmain_operation_idpre_calculation_sub_operation_idproduction_order_assembly_idproduction_order_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPPURENPC |
| Write licenses | PRODUCTIE |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
main_operation_idkey | Int32 | Hoofdbewerkings nummer |
pre_calculation_sub_operation_idkey | Int32 | Volgnummer |
production_order_header_idkey | String | Order nummer |
production_order_assembly_idkey | Int32 | Schrapnummer |
cluster_sequence | Int32 | Volgorde binnen bewerkingscluster |
description | String | Omschrijving |
employee_finished_id | Int32 | Medewerker gereedmelding |
end_date_operation | Date | Einddatum van de bewerking |
file | String | Bestand |
finish_date | Date | Datum gereedmelding |
has_adjustment_code | Boolean | Instelcode (ja/nee) True for a set-up operation (instelbewerking), whose time doesn't depend on the quantity. |
is_finished_hours | Boolean | Geeft aan of deze bewerking gereed is of niet. True when the operation is done (uren gereed). Only true counts as done. |
is_outsourced | Boolean | Uitbesteed (j/n) |
memo | String | Memo |
operation_cluster_id | String | Bewerkingsclusternummer The operation cluster (OperationClusters) it is in, if any; cluster_sequence is its place. |
operation_duration_apiece | Decimal | Bewerkingstijd p/st: Bewerkingstijd p/s The time per piece, in seconds. |
operation_sequence | Int32 | Geleidingsnummer: Bewerkings volgorde |
price | Decimal | Prijs The planned price for one unit of the assembly; multiply like total_operation_duration. |
quantity | Decimal | Aantal |
quantity_finished | Decimal | Aantal 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. |
sequence | Int32 | Volgorde |
standard_time | Decimal | Normtijd |
start_date | Date | Begindatum van de bewerking |
sub_operation_id | Int32 | Subbewerkingsnummer |
tariff | Decimal | Tarief |
total_operation_duration | Decimal | Bewerkingstijd 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_finished | 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 |
ProductionOrderAssembly | ProductionOrderAssemblies | one |
ProductionOrderHeaders | ProductionOrderHeaders | one |
SubOperation | SubOperations | one |
DocumentLinks | DocumentLinks | many |
EmployeeOperationLinks | EmployeeOperationLinks | many |
PostCalculationSubOperations | PostCalculationSubOperations | many |
PreCalculationSubOperationLinks | PreCalculationSubOperationLinks | many |
TimesheetEntries | TimesheetEntries | many |
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}')/markReadyis_finished_hoursBooleanquantityDecimal
Returns PreCalculationSubOperation
Licenses: BASISAPP, PRODUCTIE