One row per status of (part of) a production order assembly in the production orderflow. An assembly can be split over several open rows, for example when part of it is reported ready. A row is never changed to another status: every action closes it (is_finished = true, kept as history) and opens a new one, with parent_status_id pointing back. The open rows (is_finished = false) are the current state; the order's state is that of its root assembly (ProductionOrderAssembly/level eq 1). Which status an action leads to is configured per administration in NextStatuses (type 20).

Label in Fledge: Productieorder statusregels

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

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
production_order_header_idkeyStringOrder nummer
production_order_assembly_idkeyInt32Schrapnummer
production_order_assembly_status_idkeyInt32Volgnummer

A sequence number within the assembly, not the status.

actionStringIs actie mogelijk j/n

Selecting it returns action__1 up to action__30, one flag per orderflow action number, as they were when the row was made. To filter on one, use action_flags, for example action_flags has FledgeDev.Enumerators.ProductionOrderActionFlagsEnum'ENTER_TIMESHEET_ENTRY' (action 13, hours can be booked).

created_byInt32User aanmaak

The user who did the action that made this row, so who confirmed it for a status 2 row.

creation_date_timeDateTimeOffsetAangemaakt: Aanmaakdatum en -tijd

When the row was made, so when the assembly reached this status. Local time, except rows the Fledge API made (since v2-8 in UTC), such as those of generating work documents.

is_final_statusBooleanEindstatus

True when no action at all was allowed on the row's status when it was made. A final row stays open.

is_finishedBooleanAfgewerkt

Whether this row is history. Filter on is_finished eq false for the current state.

parent_status_idInt32Parent

The production_order_assembly_status_id of the row this one came from.

priceDecimalPrijs

The assembly's planned price for one unit (entry_price_pre_calculation) when the row was made, copied forward by later rows (provisional: shown for rows the Fledge API makes).

serial_numberInt32Serienummer autom.: Serienummer automatisch
sscc_label_idInt64SSCC-code id: Uniek volgnummer SSCC-code
article_idStringArtikelcode
lot_numberStringLotnummer/partijregistratie

The lot made when the assembly was reported ready (status 6), carried to later rows.

quantityDecimalAantal

The part of the assembly's quantity in this status, in the article's calculation unit. Only open rows count.

statusInt32Status
  • 1 Created (Aangemaakt)
  • 2 Confirmed (Bevestigd, formerly gefiatteerd)
  • 3 In planning
  • 4 Planned (Gepland)
  • 5 In production (In productie)
  • 6 Ready (Gereed), quantities reported ready
  • 7 Historic (Historisch)
  • 8 Deleted (Verwijderd)
  • 9 Processed (Verwerkt), financially ready; older word "Gereed"
warehouse_address_idInt32Adresnummer
warehouse_aisle_idInt32Magazijn
warehouse_shelf_idInt32Locatie

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
AdministrationsAdministrationsone
ArticleArticlesone
CreatedByUsersone
ProductionOrderAssemblyProductionOrderAssembliesone
ProductionOrderHeaderProductionOrderHeadersone
SerialNumberSerialNumbersone
SsccLabelSsccLabelsone
WarehouseAddressWarehouseAddressesone
WarehouseAisleWarehouseAislesone
WarehouseShelfWarehouseShelfsone

Actions

approve

POST https://odata-api.fledge.nl/v2-8/ProductionOrderAssemblyStatuses(administration_id=1,production_order_assembly_id={production_order_assembly_id},production_order_assembly_status_id={production_order_assembly_status_id},production_order_header_id='{production_order_header_id}')/approve

Returns ProductionOrderAssemblyStatus

Licenses: PRODUCTIE

generateWorkDocument

POST https://odata-api.fledge.nl/v2-8/ProductionOrderAssemblyStatuses(administration_id=1,production_order_assembly_id={production_order_assembly_id},production_order_assembly_status_id={production_order_assembly_status_id},production_order_header_id='{production_order_header_id}')/generateWorkDocument

Returns ProductionOrderAssemblyStatus

Licenses: PRODUCTIE

generateWorkDocument

POST https://odata-api.fledge.nl/v2-8/ProductionOrderAssemblyStatuses/generateWorkDocument
  • ProductionOrderAssemblyStatuses ProductionOrderAssemblyStatusKeyDto[]
    • administration_id Int32
    • production_order_header_id String
    • production_order_assembly_id Int32
    • production_order_assembly_status_id Int32

Returns ProductionOrderAssemblyStatus[]

Licenses: PRODUCTIE

toProduction

POST https://odata-api.fledge.nl/v2-8/ProductionOrderAssemblyStatuses(administration_id=1,production_order_assembly_id={production_order_assembly_id},production_order_assembly_status_id={production_order_assembly_status_id},production_order_header_id='{production_order_header_id}')/toProduction

Returns ProductionOrderAssemblyStatus

Licenses: PRODUCTIE

Wingman