# QuoteCalculationSubOperations

> One operation in a quote calculation assembly: a sub operation under a main operation, with its time and price.

Subject: Calculations.

One operation in a quote calculation assembly: a sub operation under a main operation, with its time and price.

Label in Fledge: Calculatie bewerkingen sub.

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

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/QuoteCalculationSubOperations?$filter=administration_id eq 1&$select=main_operation_id,quote_calculation_assembly_id,quote_calculation_header_id,quote_calculation_sub_operation_id,has_setup_code,operation_duration,operation_duration_per_piece&$top=50
GET https://odata-api.fledge.nl/v2-8/QuoteCalculationSubOperations(administration_id=1,main_operation_id={main_operation_id},quote_calculation_assembly_id={quote_calculation_assembly_id},quote_calculation_header_id='{quote_calculation_header_id}',quote_calculation_sub_operation_id={quote_calculation_sub_operation_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `main_operation_id` (key) | Int32, not null | Hoofdbewerkings nummer |
| `quote_calculation_sub_operation_id` (key) | Int32, not null | Offerte bew. nr.: Offerter bewerking nummer |
| `quote_calculation_header_id` (key) | String, not null | Offertenummer |
| `quote_calculation_assembly_id` (key) | Int32, not null | Volgnummer |
| `description` | String | Omschrijving: Omschrjving |
| `file` | String | Bestand |
| `has_setup_code` | Boolean | Instelbewerking. True for a set-up operation, whose time doesn't depend on the quantity. |
| `memo` | String | Memo |
| `operation_duration` | Decimal | Bewerkingstijd. The time in seconds for one unit of the assembly (quantity times operation_duration_per_piece). Multiply by the assembly's quantity for the whole quotation, except a set-up operation (has_setup_code), which counts once. |
| `operation_duration_per_piece` | Decimal | Bew.tijd p/st: Bewerkingstijd per stuik. The time of one run, in seconds. |
| `operation_sequence` | Int32 | Geleidingsnummer: Bewerkingsvolgorde |
| `price` | Decimal | Tarief. The price on the same basis as operation_duration. |
| `quantity` | Decimal | Aantal per stuk. The number of runs per unit of the assembly. |
| `sequence` | Int32 | Volgorde |
| `standard_duration` | Decimal | Normtijd |
| `sub_operation_id` | Int32 | Subbewerkingsnummer |
| `tariff` | Decimal | Tarief. The rate per hour. |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `QuoteCalculationAssembly` → [QuoteCalculationAssemblies](https://docs.fledge.nl/en/api/reference/QuoteCalculationAssemblies.md) (one)
- `SubOperation` → [SubOperations](https://docs.fledge.nl/en/api/reference/SubOperations.md) (one)

---

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