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
| URL | https://odata-api.fledge.nl/v2-8/ProductionOrderAssemblies |
|---|---|
| Key | administration_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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
production_order_header_idkey | String | Order nummer |
production_order_assembly_idkey | Int32 | Schrapnummer |
amount_finished | Decimal | Aantal gereed gemeld The quantity reported ready (gereedgemeld). |
area | Decimal | Oppervlakte |
article_custom_field_set_id | Int32 | Volgnummer |
calculation_quantity | Decimal | Calculatie 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_price | Decimal | Kostprijs orderkosten |
created_by | Int32 | User aanmaak |
creation_date | Date | Datum aanmaak |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
drawing_number | String | Tekening nummer |
entry_price_post_calculation | Decimal | Ingave prijs nc |
entry_price_pre_calculation | Decimal | Ingave prijs The planned price for one unit, surcharges included; times calculation_quantity it is the assembly's planned cost. |
entry_total | Decimal | Totaal ingave |
entry_total_outsourcing | Decimal | Totaal uitbesteding ingave |
external_delivery_date | Date | Datum levering extern The planned delivery date (geplande leverdatum); on the root the app keeps it equal to the order's planning_date. |
external_delivery_week | Int32 | Week levering extern |
internal_delivery_date | Date | Datum levering intern A second date; the app fills the sales line's order date here when it creates the order. |
internal_delivery_week | Int32 | Week levering intern |
is_finished | Boolean | Afgehandeld An assembly-level flag the legacy ERP sets; for the flow read the status rows. |
is_quantity_finished | Boolean | Afgewerkt aantallen (ja/nee) |
quote_calculation_assembly_id | Int32 | Volgnummer |
manual_operation_time_post_calculation | Int32 | Bew. tijd man NC: Bewerkingstijd NC man |
manual_setup_time_post_calculation | Int32 | Insteltijd man NC |
material_post_calculation | Decimal | Materiaal NC |
memo | String | Memo |
modification_date | Date | Datum wijzig |
modified_by | Int32 | User wijzig |
net_gross_manual | Int32 | Netto/Bruto/Handmatig |
operation_post_calculation | Decimal | Bewerking NC |
operation_time_post_calculation | Int32 | Bewerkingstijd NC |
order_cost | Decimal | Orderkosten: Order kosten Planned other costs (overige kosten), once per order. |
order_cost_partial_operation | Decimal | Korrektie sub |
order_cost_post_calculation | Decimal | Eenmalig NC: Eenmalige kosten NC |
outsourcing_post_calculation | Decimal | Uitbesteding NC |
parent | Int32 | Parent schrap |
phase | Int32 | Fase |
post_calculation_total | Decimal | Totaal NC The booked cost of this assembly (Totaal NC), every booking with its surcharge. |
price_setup_cost | Decimal | Kostprijs instelkosten |
production_amount | Decimal | Productie aantal: Productke aantal The quantity to produce. |
production_finished_hours | Boolean | Productie gereed uren |
production_finished_post_calculation | Boolean | Productie gereed NC |
purchased_part_post_calculation | Decimal | Koopdeel NC |
quote_calculation_header_id | String | Offertenummer The quote calculation the assembly came from, with quote_calculation_assembly_id (navigation QuoteCalculationAssembly). |
reference | String | Referentie |
reserved | Boolean | Onderdelen gereserveerd (ja/nee) |
revision | String | Revisie |
revenue_group_id | Int32 | Omzetgroep |
sales_order_amount_finished | Decimal | Aantal gereed VO: Aantal gereed verkooporder |
sequence | Int32 | Volgorde |
setup_cost | Decimal | Instelkosten Planned set-up cost, once per order. |
setup_cost_post_calculation | Decimal | Instelkosten nc |
setup_partial_operation | Decimal | Instelkosten sub.: Instelkosten sub |
setup_post_calculation | Decimal | Instellen NC |
setup_time_post_calculation | Int32 | Insteltijd NC |
stock_type | Int32 | Voorraadtype (0=Normaal; 1=Uitgifte via voorraad). |
surcharge_for_operation | Decimal | Opslag bewerking |
surcharge_for_operation_post_calculation | Decimal | Opslag kpd. NC: Opslag koopdelen NC Despite its name, the surcharge on semi-finished products in the post-calculation. |
surcharge_machine_post_calculation | Decimal | Opslag machine NC |
surcharge_manual_post_calculation | Decimal | Opslag man NC |
surcharge_material | Decimal | Opslag materiaal |
surcharge_material_post_calculation | Decimal | Opslag mat. NC: Opslag materiaal NC |
surcharge_outsourcing | Decimal | Opslag uitbesteding |
surcharge_outsourcing_post_calculation | Decimal | Opslag uitb. NC: Opslag uitbesteding NC |
surcharge_purchase_items | Decimal | Opslag koopdeel |
total_cost | Decimal | Totaal kostprijs Only counts bookings that are financially processed. For the booked cost use post_calculation_total. |
total_entry_purchase_part | Decimal | Totaal koopdeel ingave |
total_level_cost | Decimal | Tot. kostprijs kmdelen: Totale kostprijs van koop/maakdelen van de schrap zelf, exclusief bijdrage van in onderliggende schrap geproduceerde delen. |
total_level_price | Decimal | Totaalbedrag KM-delen zelf: Totaalbedrag aan KM-delen die niet in onderliggende schrap geproduceerd worden. |
total_material | Decimal | Totaal materiaal Planned material cost for the whole order, with surcharge. |
total_material_cost | Decimal | Tot. kostprijs mat.: Totaal kostprijs materialen |
total_material_entry | Decimal | Totaal materiaal ingave |
total_material_overrun | Decimal | Totaal materiaal opslag |
total_material_partial_order | Decimal | Totaal materiaal sub |
total_operations | Decimal | Totaal bewerking Planned operation cost for the whole order, with surcharge. |
total_operations_cost | Decimal | Tot. kostprijs bew.: Totaal kostprijs bewerkingen |
total_operations_entry | Decimal | Totaal bewerking ingave |
total_operations_overrun | Decimal | Totaal bewerking opslag |
total_operations_partial_operation | Decimal | Totaal bewerking sub |
total_operations_time | Int32 | Bewerkingstijd |
total_outsourcing | Decimal | Totaal uitbesteding Planned outsourcing cost for the whole order, with surcharge. |
total_outsourcing_cost | Decimal | Tot. kostprijs uitb.: Totaal kostprijs uitbesteding |
total_outsourcing_overrun | Decimal | Totaal uitbesteding opslag |
total_outsourcing_partial_operation | Decimal | Totaal uitbesteding sub.: Totaal uitbestding sub. |
total_overrun | Decimal | Totaal opslag |
total_partial_operation | Decimal | Totaal sub. |
total_purchase_part | Decimal | Totaal koopdeel Planned cost of semi-finished products for the whole order, with surcharge. |
total_purchase_part_cost | Decimal | Tot. kostprijs kpd.: Totaal kostprijs koopdelen |
total_purchase_part_overrun | Decimal | Totaal koopdeel opslag |
total_purchase_part_partial_order | Decimal | Totaal koopdeel sub |
total_setup_time | Int32 | Insteltijd |
unit_id | Int32 | Eenheid |
warehouse_address_id | Int32 | Adresnummer |
warehouse_aisle_id | Int32 | Magazijn |
warehouse_shelf_id | Int32 | Locatie |
weight | Decimal | Gewicht |
article_id | String | Artikelcode |
level | Int32 | Niveau 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.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Article | Articles | one |
CreatedBy | Users | one |
ModifiedBy | Users | one |
ProductionOrderHeader | ProductionOrderHeaders | one |
ProductionOrderUnit | ProductionOrderUnits | one |
QuoteCalculationAssembly | QuoteCalculationAssemblies | one |
RevenueGroup | RevenueGroups | one |
WarehouseAddress | WarehouseAddresses | one |
WarehouseAisle | WarehouseAisles | one |
WarehouseShelf | WarehouseShelfs | one |
DocumentLinks | DocumentLinks | many |
EmployeeOperationLinks | EmployeeOperationLinks | many |
PostCalculationBuyMakeParts | PostCalculationBuyMakeParts | many |
PostCalculationMainOperations | PostCalculationMainOperations | many |
PostCalculationMaterials | PostCalculationMaterials | many |
PostCalculationOtherCosts | PostCalculationOtherCosts | many |
PostCalculationOutsourcedItems | PostCalculationOutsourcedItems | many |
PostCalculationSubOperations | PostCalculationSubOperations | many |
PreCalculationBuyMakeParts | PreCalculationBuyMakeParts | many |
PreCalculationMainOperations | PreCalculationMainOperations | many |
PreCalculationMaterials | PreCalculationMaterials | many |
PreCalculationOtherCosts | PreCalculationOtherCosts | many |
PreCalculationOutsourcedItems | PreCalculationOutsourcedItems | many |
PreCalculationSubOperationLinks | PreCalculationSubOperationLinks | many |
PreCalculationSubOperations | PreCalculationSubOperations | many |
ProductionOrderAssemblyReferences | ProductionOrderAssemblyReferences | many |
ProductionOrderAssemblyStatuses | ProductionOrderAssemblyStatuses | many |
ProductionOrderChildLinks | ProductionOrderChildLinks | many |