One operation in the planning module of the old ERP: an operation of a production order assembly scheduled on a resource. Only filled when the administration uses that module; the web app's plan board plans PreCalculationSubOperations instead.
Label in Fledge: Planning orders bewerkingen
| URL | https://odata-api.fledge.nl/v2-8/PlanningOrderOperations |
|---|---|
| Key | administration_idplanning_order_header_idplanning_order_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 | BASIS |
| Write licenses | PRODUCTIE |
| 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/PlanningOrderOperations" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=planning_order_header_id,planning_order_operation_id,production_order_assembly_id,production_order_header_id,begin_date,begin_time,end_date' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PlanningOrderOperations');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'planning_order_header_id,planning_order_operation_id,production_order_assembly_id,production_order_header_id,begin_date,begin_time,end_date');
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/PlanningOrderOperations" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("planning_order_header_id,planning_order_operation_id,production_order_assembly_id,production_order_header_id,begin_date,begin_time,end_date"),
"$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/PlanningOrderOperations(administration_id=1,planning_order_header_id={planning_order_header_id},planning_order_operation_id={planning_order_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 |
planning_order_operation_idkey | Int32 | Bewerkingsnummer |
planning_order_header_idkey | Int32 | Ordernummer |
production_order_header_idkey | String | Order nummer |
production_order_assembly_idkey | Int32 | Schrapnummer |
begin_date | Date | Begin datum: Begindatum The planned start date. |
begin_time | Int32 | Begin tijd The planned start time, in seconds after midnight. |
change | Int32 | Wijzigingsindicator. |
completed | Int32 | Afgewerkt: Status van de bewerking |
description | String | Omschrijving |
end_date | Date | Eind datum The planned end date. |
ending | Int32 | Afloop |
end_time | Int32 | Eind tijd The planned end time, in seconds after midnight. |
fixed | Boolean | Vastgezet Pinned, so the planner doesn't move it. |
hours_code | Int32 | Urenkode |
is_milestone | Boolean | Mijlpaal |
is_outsourced | Boolean | Uitbesteding |
is_planned | Boolean | Gepland |
is_setup | Boolean | Geeft aan of het wat de planningsmodule betreft om een instelbewerking gaat of niet. Instelkode van pbws is hiervoor niet voldoende. |
main_operation | Int32 | Hoofdbewerkings nummer The main operation (main_operation_id elsewhere). |
memo | String | Memo veld |
operation_duration_post_calculation | Int32 | Bewerkingstijd nacalculatie |
operation_duration_pre_calculation | Decimal | Bewerkingstijd VC: Bewerkingstijd voorcalculatie |
operation_duration_update | Decimal | Bewtijd gewijzigde planning: Bewerkingstijd gewijzigde planning |
operation_sequence | Int32 | Geleidingsnummer |
operation_time_rest | Decimal | Resttijd: Resterende bewerkingstijd |
planning_memo | String | Memo planning |
planning_method | String | Planmethode (B = beschikbare cap.;O = oneindige cap.) B plans against available capacity, O against infinite capacity. |
planning_resource_id | Int32 | Resource |
pre_calculation_sub_operation_id | Int32 | Volgnummer The pre-calculation operation it plans, together with main_operation. |
production_code_id | Int32 | Produktiecodenummer |
program_number | String | Programma-nummer: Programmanummer |
run_up | Int32 | Aanloop |
sequence | Int32 | Volgorde |
setup_code | Boolean | Instelkode |
sub_operation | Int32 | Subbewerkingsnummer The sub operation (sub_operation_id elsewhere). |
units | Decimal | Aantal eenheden van de resource |
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 |
PlanningOrderAssembly | PlanningOrderAssemblies | one |
PlanningOrderHeader | PlanningOrderHeaders | one |
PlanningResource | PlanningResources | one |
PreCalculationSubOperation | PreCalculationSubOperations | one |
ProductionCode | ProductionCodes | one |
ProductionOrderAssembly | ProductionOrderAssemblies | one |
ProductionOrderHeader | ProductionOrderHeaders | one |
SubOperation | SubOperations | one |
PlanningDailyPlannedCapacities | PlanningDailyPlannedCapacities | many |
PlanningOrderOperationInvomingLinks | PlanningOrderOperationLinks | many |
PlanningOrderOperationOutgoingLinks | PlanningOrderOperationLinks | many |