# QuoteCalculationAssemblies

> One assembly of a quote calculation, with its stored totals.

Subject: Calculations.

One assembly of a quote calculation, with its stored totals. The root (level 1) holds the figures of the whole calculation, sub assemblies included. All totals are per piece of the assembly; set-up and other costs are batch amounts.

Label in Fledge: Calculatie schraps.

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

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/QuoteCalculationAssemblies?$filter=administration_id eq 1&$select=quote_calculation_assembly_id,quote_calculation_header_id,correction_cost,input_price,invoice_quantity&$top=50
GET https://odata-api.fledge.nl/v2-8/QuoteCalculationAssemblies(administration_id=1,quote_calculation_assembly_id={quote_calculation_assembly_id},quote_calculation_header_id='{quote_calculation_header_id}')
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `quote_calculation_header_id` (key) | String, not null | Offertenummer |
| `quote_calculation_assembly_id` (key) | Int32, not null | Volgnummer |
| `article_custom_field_set_id` | Int32 | Volgnummer |
| `calculation_type_id` | Int32 | Soort offerte |
| `correction_cost` | Decimal | Eenmalig: Korrektiekosten. Other costs (korrektiekosten) for the whole batch. |
| `correction_cost_sub` | Decimal | Korrektie sub |
| `delivery_date` | Date | Datum |
| `delivery_week` | Int32 | Week |
| `description_1` | String | Omschrijving |
| `description_2` | String | Omschrijving |
| `description_3` | String | Omschrijving |
| `drawing_number` | String | Tekening nummer: Tekeningnummer |
| `input_price` | Decimal | Ingaveprijs. The price offered per piece (ingaveprijs). |
| `invoice_quantity` | Decimal | Offerte aantal. The quantity quoted; must equal the quotation line's quantity to carry the price over. |
| `is_completed` | Boolean | Afgehandeld (ja/nee) |
| `memo` | String | Memo |
| `net_gross_manual` | Int32 | Netto/Bruto/Handmatig |
| `phase` | Int32 | Fase |
| `production_order_unit_id` | Int32 | Eenheid |
| `revision` | String | Revisie |
| `sequence` | Int32 | Volgorde |
| `setup_cost` | Decimal | Instelkosten. Set-up cost for the whole batch, without margin. |
| `setup_cost_from_sub` | Decimal | Instelkosten ber.: Instelkosten berekend uit sub |
| `storage_buy_make_parts_percentage` | Decimal | Opslag koopdeel: Opslag koopdelen |
| `storage_materials_percentage` | Decimal | Opslag materiaal: Opslag percentage materiaal |
| `storage_operation_percentage` | Decimal | Opslag bewerkingen: Opslag percentage bewerkingen |
| `storage_outsourcing_percentage` | Decimal | Opslag uitbesteding: Opslag percentage uitbesteding |
| `storage_total_buy_part` | Decimal | Totaal koopdeel opsl.: Totaal koopdeel opslag |
| `storage_total_materials` | Decimal | Totaal materiaal opsl.: Totaal materiaal opslag |
| `storage_total_operations` | Decimal | Totaal bewerkingen opsl.: Totaal bewerkingen opslag |
| `storage_total_outsourcing` | Decimal | Totaal uitbesteding opsl.: Totaal uitbesteding opslag |
| `total_buy_part` | Decimal | Totaal koopdeel |
| `total_buy_part_from_sub` | Decimal | Totaal koopdeel sub.: Totaal koopdeel berekend uit sub. Semi-finished products per piece, without margin. |
| `total_buy_part_not_produced_in_lower_level` | Decimal | Totaalbedrag KM-delen zelf: Totaalbedrag aan KM-delen die niet in onderliggende schrap geproduceerd worden. |
| `total_calculated` | Decimal | Totaal berekend. The cost price per piece without profit margins. |
| `total_input` | Decimal | Totaal ingave. The sum of the entry prices per piece, with the per-piece share of set-up and other costs. Usually equal to input_price, which can be entered by hand; input_price is the price offered. |
| `total_input_buy_part` | Decimal | Totaal koopdeel ingave |
| `total_material_input` | Decimal | Totaal materiaal ingave: Totaal marteriaal ingave |
| `total_materials` | Decimal | Totaal materiaal |
| `total_materials_sub` | Decimal | Totaal materiaal sub.. Materials per piece, without margin. |
| `total_operations` | Decimal | Totaal bewerking |
| `total_operations_input` | Decimal | Totaal bewerkingen ingave |
| `total_operations_sub` | Decimal | Totaal bewerkingen sub.. Operations per piece, without margin. |
| `total_operation_time` | Int32 | Totaal bew. tijd: Totale bewerkings tijd. Seconds of this assembly's own operations, per piece. |
| `total_outsourcing` | Decimal | Totaal uitbesteding |
| `total_outsourcing_input` | Decimal | Totaal uitbesteding ingave |
| `total_outsourcing_sub` | Decimal | Totaal uitbesteding sub.: Totaal uitbesteding sub. Outsourcing per piece, without margin. |
| `total_price` | Decimal | Totaal prijs. Not filled. |
| `total_setup_time` | Int32 | Totaal Insteltijd: Totale Insteltijd. Seconds of this assembly's own set-up, for the batch. |
| `total_storage` | Decimal | Totaal opslag. The cost price per piece with the profit margins. |
| `unit_price` | Decimal | Eenheids prijs. Not filled. |
| `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. A calculation started by copying in an app before 2026.17 has no level 1 at all: every assembly, the root too, is 2. So find the root as the lowest level, then the lowest quote_calculation_assembly_id; never use level 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 the whole quotation line; not multiplied down the tree. |
| `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)
- `CalculationType` → [CalculationTypes](https://docs.fledge.nl/en/api/reference/CalculationTypes.md) (one)
- `ProductionOrderUnit` → [ProductionOrderUnits](https://docs.fledge.nl/en/api/reference/ProductionOrderUnits.md) (one)
- `QuoteCalculationHeader` → [QuoteCalculationHeaders](https://docs.fledge.nl/en/api/reference/QuoteCalculationHeaders.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)
- `QuoteCalculationAssemblyReference` → [QuoteCalculationAssemblyReferences](https://docs.fledge.nl/en/api/reference/QuoteCalculationAssemblyReferences.md) (many)
- `QuoteCalculationBuyMakeParts` → [QuoteCalculationBuyMakeParts](https://docs.fledge.nl/en/api/reference/QuoteCalculationBuyMakeParts.md) (many)
- `QuoteCalculationMainOperations` → [QuoteCalculationMainOperations](https://docs.fledge.nl/en/api/reference/QuoteCalculationMainOperations.md) (many)
- `QuoteCalculationMaterials` → [QuoteCalculationMaterials](https://docs.fledge.nl/en/api/reference/QuoteCalculationMaterials.md) (many)
- `QuoteCalculationOutsourcedItems` → [QuoteCalculationOutsourcedItems](https://docs.fledge.nl/en/api/reference/QuoteCalculationOutsourcedItems.md) (many)
- `QuoteCalculationSubOperationLinks` → [QuoteCalculationSubOperationLinks](https://docs.fledge.nl/en/api/reference/QuoteCalculationSubOperationLinks.md) (many)
- `QuoteCalculationSubOperations` → [QuoteCalculationSubOperations](https://docs.fledge.nl/en/api/reference/QuoteCalculationSubOperations.md) (many)

---

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