# ProductionOrderAssemblies

> One assembly of a production order: one article made in a quantity, with its pre-calculation (PreCalculation*) and post-calculation (PostCalculation*).

Subject: Production.

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_id`, `production_order_assembly_id`, `production_order_header_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, BASISAPP, URENPC |
| Write licenses | PRODUCTIE |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/ProductionOrderAssemblies?$filter=administration_id eq 1&$select=production_order_assembly_id,production_order_header_id,amount_finished,calculation_quantity,entry_price_pre_calculation&$top=50
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_id` (key) | Int32 | Administratienummer |
| `production_order_header_id` (key) | String, not null | Order nummer |
| `production_order_assembly_id` (key) | Int32, not null | 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

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `Article` → [Articles](https://docs.fledge.nl/en/api/reference/Articles.md) (one)
- `CreatedBy` → [Users](https://docs.fledge.nl/en/api/reference/Users.md) (one)
- `ModifiedBy` → [Users](https://docs.fledge.nl/en/api/reference/Users.md) (one)
- `ProductionOrderHeader` → [ProductionOrderHeaders](https://docs.fledge.nl/en/api/reference/ProductionOrderHeaders.md) (one)
- `ProductionOrderUnit` → [ProductionOrderUnits](https://docs.fledge.nl/en/api/reference/ProductionOrderUnits.md) (one)
- `QuoteCalculationAssembly` → [QuoteCalculationAssemblies](https://docs.fledge.nl/en/api/reference/QuoteCalculationAssemblies.md) (one)
- `RevenueGroup` → [RevenueGroups](https://docs.fledge.nl/en/api/reference/RevenueGroups.md) (one)
- `WarehouseAddress` → [WarehouseAddresses](https://docs.fledge.nl/en/api/reference/WarehouseAddresses.md) (one)
- `WarehouseAisle` → [WarehouseAisles](https://docs.fledge.nl/en/api/reference/WarehouseAisles.md) (one)
- `WarehouseShelf` → [WarehouseShelfs](https://docs.fledge.nl/en/api/reference/WarehouseShelfs.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)
- `EmployeeOperationLinks` → [EmployeeOperationLinks](https://docs.fledge.nl/en/api/reference/EmployeeOperationLinks.md) (many)
- `PostCalculationBuyMakeParts` → [PostCalculationBuyMakeParts](https://docs.fledge.nl/en/api/reference/PostCalculationBuyMakeParts.md) (many)
- `PostCalculationMainOperations` → [PostCalculationMainOperations](https://docs.fledge.nl/en/api/reference/PostCalculationMainOperations.md) (many)
- `PostCalculationMaterials` → [PostCalculationMaterials](https://docs.fledge.nl/en/api/reference/PostCalculationMaterials.md) (many)
- `PostCalculationOtherCosts` → [PostCalculationOtherCosts](https://docs.fledge.nl/en/api/reference/PostCalculationOtherCosts.md) (many)
- `PostCalculationOutsourcedItems` → [PostCalculationOutsourcedItems](https://docs.fledge.nl/en/api/reference/PostCalculationOutsourcedItems.md) (many)
- `PostCalculationSubOperations` → [PostCalculationSubOperations](https://docs.fledge.nl/en/api/reference/PostCalculationSubOperations.md) (many)
- `PreCalculationBuyMakeParts` → [PreCalculationBuyMakeParts](https://docs.fledge.nl/en/api/reference/PreCalculationBuyMakeParts.md) (many)
- `PreCalculationMainOperations` → [PreCalculationMainOperations](https://docs.fledge.nl/en/api/reference/PreCalculationMainOperations.md) (many)
- `PreCalculationMaterials` → [PreCalculationMaterials](https://docs.fledge.nl/en/api/reference/PreCalculationMaterials.md) (many)
- `PreCalculationOtherCosts` → [PreCalculationOtherCosts](https://docs.fledge.nl/en/api/reference/PreCalculationOtherCosts.md) (many)
- `PreCalculationOutsourcedItems` → [PreCalculationOutsourcedItems](https://docs.fledge.nl/en/api/reference/PreCalculationOutsourcedItems.md) (many)
- `PreCalculationSubOperationLinks` → [PreCalculationSubOperationLinks](https://docs.fledge.nl/en/api/reference/PreCalculationSubOperationLinks.md) (many)
- `PreCalculationSubOperations` → [PreCalculationSubOperations](https://docs.fledge.nl/en/api/reference/PreCalculationSubOperations.md) (many)
- `ProductionOrderAssemblyReferences` → [ProductionOrderAssemblyReferences](https://docs.fledge.nl/en/api/reference/ProductionOrderAssemblyReferences.md) (many)
- `ProductionOrderAssemblyStatuses` → [ProductionOrderAssemblyStatuses](https://docs.fledge.nl/en/api/reference/ProductionOrderAssemblyStatuses.md) (many)
- `ProductionOrderChildLinks` → [ProductionOrderChildLinks](https://docs.fledge.nl/en/api/reference/ProductionOrderChildLinks.md) (many)

---

Source: https://docs.fledge.nl/en/api/reference/ProductionOrderAssemblies
