# QuoteCalculationHeaders

> A quote calculation (offertecalculatie): prices one product of a sales quotation line.

Subject: Calculations.

A quote calculation (offertecalculatie): prices one product of a sales quotation line. The totals are on its root assembly (QuoteCalculationAssemblies: the lowest level, then the lowest id), not here.

Label in Fledge: Calculatie header.

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

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/QuoteCalculationHeaders?$filter=administration_id eq 1&$select=quote_calculation_header_id,amount,calculation_status_id,mark_up_buy_parts&$top=50
GET https://odata-api.fledge.nl/v2-8/QuoteCalculationHeaders(administration_id=1,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 |
| `agent_id` | Int32 | verwijzing naar de tabel agnt (agent) |
| `agent_name` | String | Naam agent |
| `amount` | Decimal | Bedrag. Not computed. |
| `article_id` | String | Artikelcode |
| `calculation_model` | Int32 | Calculatiemodel (0 = calculatieprijzen; 1 = commerciele calculatieprijzen) |
| `calculation_status_id` | Int32 | Status offerte. A free status from CalculationStatuses; nothing acts on it. |
| `calculation_type_id` | Int32 | Soort offerte |
| `company_name_1` | String | Bedrijfsnaam |
| `company_name_2` | String | Bedrijfsnaam |
| `company_name_3` | String | Bedrjfsnaam: Bedrijfsnaam |
| `customer_reference` | String | Uw referentie |
| `date_valid` | Date | Datum geldigheid |
| `debtor_id` | Int32 | Debiteurnummer |
| `delivery_condition_id` | Int32 | Leveringsconditie |
| `description_1` | String | Omschrijving |
| `description_2` | String | Omschrijving |
| `description_3` | String | Omschrijving |
| `drawing_number` | String | Tekening nummer |
| `fax_number` | String | Telefax |
| `foreign_currency_code_id` | Int32 | Valutanummer |
| `gender` | String | Sexe |
| `has_backflushing` | Boolean | Backflushing (j/n) |
| `initials` | String | Voorletters |
| `is_blocked` | Boolean | Geblokkeerd (j/n) |
| `mark_up_buy_parts` | Decimal | Opslag koopdeel: Opslag koopdelen. Profit margin on semi-finished products, in percent. |
| `mark_up_materials` | Decimal | Opslag materiaal: Opslag percentage materiaal. Profit margin on materials, in percent. |
| `mark_up_outsourcing` | Decimal | Opslag uitbesteding: Opslag percentage uitbesteding. Profit margin on outsourcing, in percent. |
| `mark_up_percentage_operations` | Decimal | Opslag bewerkingen: Opslag percentage bewerkingen. Profit margin on operations, in percent. |
| `memo` | String | Memo |
| `memo_foot` | String | Memo |
| `name_person_1` | String | Naam |
| `name_person_2` | String | Naam |
| `name_prefix` | String | Voorvoegsel |
| `net_gross_manual` | Int32 | Netto/Bruto/Handmatig |
| `number_1` | Int32 | Nummer |
| `number_2` | String | Subnummer |
| `our_reference` | String | Onze referentie |
| `payment_term_id` | Int32 | Betalingskonditie |
| `payment_terms_description_1` | String | Omschrijving |
| `payment_terms_description_2` | String | Omschrijving betalingsconditie 2 |
| `place_1` | String | Plaats |
| `place_2` | String | Plaats |
| `postal_code` | String | Postkode |
| `relation_address_id` | Int32 | Adresnummer |
| `relation_contact_person_id` | Int32 | Kontaktpers.: Kontakt persoon nummer |
| `relation_id` | Int32 | Relatie |
| `revision` | String | Revisie |
| `sales_quotation_header_id` | String | Offertenummer. The quotation; empty when the calculation is unlinked. |
| `sales_quotation_line_id` | Int32 | Regelnummer. The quotation line; 0 when the calculation is unlinked. |
| `separate_setup_cost` | Boolean | Instelkosten separaat |
| `shipping_method_id` | Int32 | Verzendmethode nummer |
| `street_name_1` | String | Straat |
| `street_name_2` | String | Straat |
| `telephone_number` | String | Telefoon |
| `time` | Int32 | Tijd |
| `use_in_planning` | Boolean | Plannen: Geeft aan of de calculatie automatisch geimporteerd moet worden in de planningsmodule of niet. |
| `week_valid` | Int32 | Week geldigheid |

## 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)
- `CalculationStatus` → [CalculationStatuses](https://docs.fledge.nl/en/api/reference/CalculationStatuses.md) (one)
- `Debtor` → [Debtors](https://docs.fledge.nl/en/api/reference/Debtors.md) (one)
- `DeliveryCondition` → [DeliveryConditions](https://docs.fledge.nl/en/api/reference/DeliveryConditions.md) (one)
- `PaymentTerm` → [PaymentConditions](https://docs.fledge.nl/en/api/reference/PaymentConditions.md) (one)
- `Relation` → [Relations](https://docs.fledge.nl/en/api/reference/Relations.md) (one)
- `SalesQuotationLine` → [SalesQuotationLines](https://docs.fledge.nl/en/api/reference/SalesQuotationLines.md) (one)
- `ShippingMethod` → [ShippingMethods](https://docs.fledge.nl/en/api/reference/ShippingMethods.md) (one)
- `DocumentLinks` → [DocumentLinks](https://docs.fledge.nl/en/api/reference/DocumentLinks.md) (many)
- `QuoteCalculationAssemblies` → [QuoteCalculationAssemblies](https://docs.fledge.nl/en/api/reference/QuoteCalculationAssemblies.md) (many)

## Actions

- `GET QuoteCalculationHeaders/nextId(…)` — returns QuoteCalculationHeaderNextIdResultDto
- `POST QuoteCalculationHeaders(administration_id=1,quote_calculation_header_id='{quote_calculation_header_id}')/recalculate` — body: `delete_orphan_assemblies` Boolean; `pricing_mode` CalculationPricingMode
- `POST QuoteCalculationHeaders(administration_id=1,quote_calculation_header_id='{quote_calculation_header_id}')/transferPriceToSalesQuotation` — body: `delete_instalments` Boolean; `ignore_amount_difference` Boolean

---

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