An operation (bewerking) within a main operation; sub_operation_id is its code, 1 to 99 within the main operation, never changed. Screens print main and sub code together, such as 0712.
Label in Fledge: Subbewerkingen
| URL | https://odata-api.fledge.nl/v2-8/SubOperations |
|---|---|
| Key | administration_idmain_operation_idsub_operation_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPPURENPC |
| 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/SubOperations" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=main_operation_id,sub_operation_id,active,billing_rate,setup_operation' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/SubOperations');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'main_operation_id,sub_operation_id,active,billing_rate,setup_operation');
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/SubOperations" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("main_operation_id,sub_operation_id,active,billing_rate,setup_operation"),
"$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/SubOperations(administration_id=1,main_operation_id={main_operation_id},sub_operation_id={sub_operation_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratie |
main_operation_idkey | Int32 | Hoofdbewerkingsnummer |
sub_operation_idkey | Int32 | Subbewerkingsnummer |
active | Boolean | Geeft aan of de bewerking nog actief (courant) is. False when archived (gearchiveerd). An archived operation can't be booked on any more, but can have older bookings. |
billing_rate | Decimal | Declarabel tarief The hourly rate charged (declaratieprijs); on MainOperations the same is billable_rate. |
can_be_unmanned | Boolean | Geeft aan of een machine onbemand kan draaien. |
code | String | Bewerkingscode bestaande uit hoofdbewerking x(2) + subbewerking x(2). |
commercial_rate | Decimal | Tarief commercieel: Commercieel tarief |
cost_operations_post_calculation | Decimal | Kostprijstarief |
cost_operations_pre_calculation | Decimal | Calculatietarief |
description | String | Omschrijving |
early_or_late | Boolean | Reden vl: Geeft aan of de subbewerking gebruikt moet worden als reden te vroeg/laat bij klokken met Benzingterminals. Alleen van toepassing als de uursoort 'Afwezig' is. |
is_day_of | Boolean | Bewerking is snipperuur (J/N) |
is_doctors_visit | Boolean | Bewerking geldt als artsbezoek (J/N) |
is_due_to_illness | Boolean | Ziekte uur: Bewerking geldt als ziekte (J/N) |
is_man_hours | Boolean | Geeft aan of uren geboekt op deze bewerking altijd manuren zijn of dat ze evt niet meedoen om aan ov te ontkomen. |
is_travel | Boolean | Bewerking geldt als reisuur (J/N) |
maximum_units_planning | Int32 | Max. eenheden: Maximaal aantal eenheden planning |
outsourced | Boolean | Uitbesteding (ja/nee) |
planning_threshold | Int32 | Planningsdrempel. Bij plannen tegen beschikbare cap. worden gaten die kleiner zijn dan de planningsdrempel niet opgevuld. |
production_code_id | Int32 | Produktiecodenummer |
resource_id | Int32 | Resource |
setup_operation | Boolean | Instelbewerking A set-up operation (instelbewerking); SubOperationLinks names the operations it prepares. |
setup_operation_factor_planning | Int32 | Instelfactor voor planning. Als de verhouding van bewerkingstijd/insteltijd beneden deze factor ligt, dan niet verdelen over meerdere resources. |
startup | Int32 | Aanloop |
time_remaining | Boolean | Geeft aan of voor de bewerking tijdens het urenboeken om geschatte resttijd gevraagd moet worden of niet. |
type | Int32 | Bewerkingssoort: Soort subbewerking: productief/ niet-productief/ afwezig /reisuren
|
weighting_percentage | Int32 | Wegingsfactor subbewerking |
wind_down | Int32 | Afloop |
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 |
MainOperation | MainOperations | one |
PlanningResource | PlanningResources | one |
ProductionCode | ProductionCodes | one |
EmployeeCompetences | EmployeeCompetences | many |
EmployeeOperationLinks | EmployeeOperationLinks | many |
PlanningOrderOperations | PlanningOrderOperations | many |
PlanningPlannedCapacities | PlanningPlannedCapacities | many |
PreCalculationSubOperations | PreCalculationSubOperations | many |
SubOperationLinks | SubOperationLinks | many |