One assembly of a production order: one article made in a quantity, with its pre-calculation (PreCalculation*) and post-calculation (PostCalculation*). The assembly with level 1 is the root: what the order makes. Sub assemblies are linked through ProductionOrderAssemblyReferences.

Label in Fledge: Productieorder schraps

URLhttps://odata-api.fledge.nl/v2-8/ProductionOrderAssemblies
Keyadministration_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/ProductionOrderAssemblies" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=production_order_assembly_id,production_order_header_id,amount_finished,calculation_quantity,entry_price_pre_calculation' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/ProductionOrderAssemblies');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'production_order_assembly_id,production_order_header_id,amount_finished,calculation_quantity,entry_price_pre_calculation');
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/ProductionOrderAssemblies" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("production_order_assembly_id,production_order_header_id,amount_finished,calculation_quantity,entry_price_pre_calculation"),
    "$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/ProductionOrderAssemblies(administration_id=1,production_order_assembly_id={production_order_assembly_id},production_order_header_id='{production_order_header_id}')

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
production_order_header_idkeyStringOrder nummer
production_order_assembly_idkeyInt32Schrapnummer
amount_finishedDecimalAantal gereed gemeld

The quantity reported ready (gereedgemeld).

areaDecimalOppervlakte
article_custom_field_set_idInt32Volgnummer
calculation_quantityDecimalCalculatie aantal

The quantity the calculation is costed at; can differ from production_amount. Pre-calculation lines are per unit of the assembly: multiply them by this.

cost_order_priceDecimalKostprijs orderkosten
created_byInt32User aanmaak
creation_dateDateDatum aanmaak
description_1StringOmschrijving
description_2StringOmschrijving
description_3StringOmschrijving
drawing_numberStringTekening nummer
entry_price_post_calculationDecimalIngave prijs nc
entry_price_pre_calculationDecimalIngave prijs

The planned price for one unit, surcharges included; times calculation_quantity it is the assembly's planned cost.

entry_totalDecimalTotaal ingave
entry_total_outsourcingDecimalTotaal uitbesteding ingave
external_delivery_dateDateDatum levering extern

The planned delivery date (geplande leverdatum); on the root the app keeps it equal to the order's planning_date.

external_delivery_weekInt32Week levering extern
internal_delivery_dateDateDatum levering intern

A second date; the app fills the sales line's order date here when it creates the order.

internal_delivery_weekInt32Week levering intern
is_finishedBooleanAfgehandeld

An assembly-level flag the legacy ERP sets; for the flow read the status rows.

is_quantity_finishedBooleanAfgewerkt aantallen (ja/nee)
quote_calculation_assembly_idInt32Volgnummer
manual_operation_time_post_calculationInt32Bew. tijd man NC: Bewerkingstijd NC man
manual_setup_time_post_calculationInt32Insteltijd man NC
material_post_calculationDecimalMateriaal NC
memoStringMemo
modification_dateDateDatum wijzig
modified_byInt32User wijzig
net_gross_manualInt32Netto/Bruto/Handmatig
operation_post_calculationDecimalBewerking NC
operation_time_post_calculationInt32Bewerkingstijd NC
order_costDecimalOrderkosten: Order kosten

Planned other costs (overige kosten), once per order.

order_cost_partial_operationDecimalKorrektie sub
order_cost_post_calculationDecimalEenmalig NC: Eenmalige kosten NC
outsourcing_post_calculationDecimalUitbesteding NC
parentInt32Parent schrap
phaseInt32Fase
post_calculation_totalDecimalTotaal NC

The booked cost of this assembly (Totaal NC), every booking with its surcharge.

price_setup_costDecimalKostprijs instelkosten
production_amountDecimalProductie aantal: Productke aantal

The quantity to produce.

production_finished_hoursBooleanProductie gereed uren
production_finished_post_calculationBooleanProductie gereed NC
purchased_part_post_calculationDecimalKoopdeel NC
quote_calculation_header_idStringOffertenummer

The quote calculation the assembly came from, with quote_calculation_assembly_id (navigation QuoteCalculationAssembly).

referenceStringReferentie
reservedBooleanOnderdelen gereserveerd (ja/nee)
revisionStringRevisie
revenue_group_idInt32Omzetgroep
sales_order_amount_finishedDecimalAantal gereed VO: Aantal gereed verkooporder
sequenceInt32Volgorde
setup_costDecimalInstelkosten

Planned set-up cost, once per order.

setup_cost_post_calculationDecimalInstelkosten nc
setup_partial_operationDecimalInstelkosten sub.: Instelkosten sub
setup_post_calculationDecimalInstellen NC
setup_time_post_calculationInt32Insteltijd NC
stock_typeInt32Voorraadtype (0=Normaal; 1=Uitgifte via voorraad).
surcharge_for_operationDecimalOpslag bewerking
surcharge_for_operation_post_calculationDecimalOpslag kpd. NC: Opslag koopdelen NC

Despite its name, the surcharge on semi-finished products in the post-calculation.

surcharge_machine_post_calculationDecimalOpslag machine NC
surcharge_manual_post_calculationDecimalOpslag man NC
surcharge_materialDecimalOpslag materiaal
surcharge_material_post_calculationDecimalOpslag mat. NC: Opslag materiaal NC
surcharge_outsourcingDecimalOpslag uitbesteding
surcharge_outsourcing_post_calculationDecimalOpslag uitb. NC: Opslag uitbesteding NC
surcharge_purchase_itemsDecimalOpslag koopdeel
total_costDecimalTotaal kostprijs

Only counts bookings that are financially processed. For the booked cost use post_calculation_total.

total_entry_purchase_partDecimalTotaal koopdeel ingave
total_level_costDecimalTot. kostprijs kmdelen: Totale kostprijs van koop/maakdelen van de schrap zelf, exclusief bijdrage van in onderliggende schrap geproduceerde delen.
total_level_priceDecimalTotaalbedrag KM-delen zelf: Totaalbedrag aan KM-delen die niet in onderliggende schrap geproduceerd worden.
total_materialDecimalTotaal materiaal

Planned material cost for the whole order, with surcharge.

total_material_costDecimalTot. kostprijs mat.: Totaal kostprijs materialen
total_material_entryDecimalTotaal materiaal ingave
total_material_overrunDecimalTotaal materiaal opslag
total_material_partial_orderDecimalTotaal materiaal sub
total_operationsDecimalTotaal bewerking

Planned operation cost for the whole order, with surcharge.

total_operations_costDecimalTot. kostprijs bew.: Totaal kostprijs bewerkingen
total_operations_entryDecimalTotaal bewerking ingave
total_operations_overrunDecimalTotaal bewerking opslag
total_operations_partial_operationDecimalTotaal bewerking sub
total_operations_timeInt32Bewerkingstijd
total_outsourcingDecimalTotaal uitbesteding

Planned outsourcing cost for the whole order, with surcharge.

total_outsourcing_costDecimalTot. kostprijs uitb.: Totaal kostprijs uitbesteding
total_outsourcing_overrunDecimalTotaal uitbesteding opslag
total_outsourcing_partial_operationDecimalTotaal uitbesteding sub.: Totaal uitbestding sub.
total_overrunDecimalTotaal opslag
total_partial_operationDecimalTotaal sub.
total_purchase_partDecimalTotaal koopdeel

Planned cost of semi-finished products for the whole order, with surcharge.

total_purchase_part_costDecimalTot. kostprijs kpd.: Totaal kostprijs koopdelen
total_purchase_part_overrunDecimalTotaal koopdeel opslag
total_purchase_part_partial_orderDecimalTotaal koopdeel sub
total_setup_timeInt32Insteltijd
unit_idInt32Eenheid
warehouse_address_idInt32Adresnummer
warehouse_aisle_idInt32Magazijn
warehouse_shelf_idInt32Locatie
weightDecimalGewicht
article_idStringArtikelcode
levelInt32Niveau

1 is the root assembly. The legacy ERP gives every other assembly 2, whatever its depth. Only level eq 1 means something: use it to find the root, never as the depth or to find a parent. Values above 2 exist but are wrong data, written by the new calculation screen. The tree is in ProductionOrderAssemblyReferences only.

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
ArticleArticlesone
CreatedByUsersone
ModifiedByUsersone
ProductionOrderHeaderProductionOrderHeadersone
ProductionOrderUnitProductionOrderUnitsone
QuoteCalculationAssemblyQuoteCalculationAssembliesone
RevenueGroupRevenueGroupsone
WarehouseAddressWarehouseAddressesone
WarehouseAisleWarehouseAislesone
WarehouseShelfWarehouseShelfsone
DocumentLinksDocumentLinksmany
EmployeeOperationLinksEmployeeOperationLinksmany
PostCalculationBuyMakePartsPostCalculationBuyMakePartsmany
PostCalculationMainOperationsPostCalculationMainOperationsmany
PostCalculationMaterialsPostCalculationMaterialsmany
PostCalculationOtherCostsPostCalculationOtherCostsmany
PostCalculationOutsourcedItemsPostCalculationOutsourcedItemsmany
PostCalculationSubOperationsPostCalculationSubOperationsmany
PreCalculationBuyMakePartsPreCalculationBuyMakePartsmany
PreCalculationMainOperationsPreCalculationMainOperationsmany
PreCalculationMaterialsPreCalculationMaterialsmany
PreCalculationOtherCostsPreCalculationOtherCostsmany
PreCalculationOutsourcedItemsPreCalculationOutsourcedItemsmany
PreCalculationSubOperationLinksPreCalculationSubOperationLinksmany
PreCalculationSubOperationsPreCalculationSubOperationsmany
ProductionOrderAssemblyReferencesProductionOrderAssemblyReferencesmany
ProductionOrderAssemblyStatusesProductionOrderAssemblyStatusesmany
ProductionOrderChildLinksProductionOrderChildLinksmany
Wingman