# PartsListAssemblies

> One assembly of a parts list.

Subject: Calculations.

One assembly of a parts list. The root has level 1; sub assemblies hang under a buy/make part line through PartsListAssemblyReferences.

Label in Fledge: Stuklijst schraps.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/PartsListAssemblies` |
| Key | `administration_id`, `parts_list_assembly_id`, `parts_list_header_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | BASIS |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/PartsListAssemblies?$filter=administration_id eq 1&$select=parts_list_assembly_id,parts_list_header_id,level,quantity,date_created&$top=50
GET https://odata-api.fledge.nl/v2-8/PartsListAssemblies(administration_id=1,parts_list_assembly_id={parts_list_assembly_id},parts_list_header_id='{parts_list_header_id}')
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `parts_list_header_id` (key) | String, not null | Calculatienummer |
| `parts_list_assembly_id` (key) | Int32, not null | Schrapnummer |
| `article_custom_field_set_id` | Int32 | Volgnummer |
| `date_created` | Date | Datum aanmaak |
| `date_updated` | Date | Datum wijzig |
| `description_1` | String | Omschrijving |
| `description_2` | String | Omschrijving |
| `description_3` | String | Omschrijving |
| `drawing_number` | String | Tekening nummer: Tekeningnummer |
| `is_completed` | Boolean | Afgehandeld (ja/nee) |
| `memo` | String | Memo |
| `net_gross_manual` | Int32 | Netto/Bruto/Handmatig |
| `phase` | Int32 | Fase |
| `revenue_group_id` | Int32 | Omzetgroep |
| `revision` | String | Revisie |
| `sequence` | Int32 | Volgorde |
| `total_operation_time` | Int32 | Totaal bewerkingstijd: Totale bewerkingstijd |
| `total_setup_time` | Int32 | Totaal insteltijd: Totale insteltijd |
| `user_created` | Int32 | User aanmaak |
| `user_updated` | Int32 | User wijzig |
| `area` | Decimal | Oppervlakte |
| `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 the reference table only. |
| `quantity` | Decimal | Aantal. The quantity of this assembly for one product of the root. |
| `weight` | Decimal | Gewicht |

## 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)
- `ArticleCustomFieldSet` → [ArticleCustomFieldSets](https://docs.fledge.nl/en/api/reference/ArticleCustomFieldSets.md) (one)
- `PartsListHeader` → [PartsListHeaders](https://docs.fledge.nl/en/api/reference/PartsListHeaders.md) (one)
- `RevenueGroup` → [RevenueGroups](https://docs.fledge.nl/en/api/reference/RevenueGroups.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)
- `PartsListAssemblyReferences` → [PartsListAssemblyReferences](https://docs.fledge.nl/en/api/reference/PartsListAssemblyReferences.md) (many)
- `PartsListBuyMakeParts` → [PartsListBuyMakeParts](https://docs.fledge.nl/en/api/reference/PartsListBuyMakeParts.md) (many)
- `PartsListMainOperations` → [PartsListMainOperations](https://docs.fledge.nl/en/api/reference/PartsListMainOperations.md) (many)
- `PartsListMaterials` → [PartsListMaterials](https://docs.fledge.nl/en/api/reference/PartsListMaterials.md) (many)
- `PartsListOutsourcedItems` → [PartsListOutsourcedItems](https://docs.fledge.nl/en/api/reference/PartsListOutsourcedItems.md) (many)
- `PartsListSubOperationLinks` → [PartsListSubOperationLinks](https://docs.fledge.nl/en/api/reference/PartsListSubOperationLinks.md) (many)
- `PartsListSubOperations` → [PartsListSubOperations](https://docs.fledge.nl/en/api/reference/PartsListSubOperations.md) (many)

---

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