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_idquote_calculation_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIEVERKOOPBEHEER |
| Scopes | FLEDGE_PORTAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/QuoteCalculationHeaders" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=quote_calculation_header_id,amount,calculation_status_id,mark_up_buy_parts' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/QuoteCalculationHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'quote_calculation_header_id,amount,calculation_status_id,mark_up_buy_parts');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/QuoteCalculationHeaders" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("quote_calculation_header_id,amount,calculation_status_id,mark_up_buy_parts"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
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_idkey | Int32 | Administratienummer |
quote_calculation_header_idkey | String | 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
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Article | Articles | one |
CalculationStatus | CalculationStatuses | one |
Debtor | Debtors | one |
DeliveryCondition | DeliveryConditions | one |
PaymentTerm | PaymentConditions | one |
Relation | Relations | one |
SalesQuotationLine | SalesQuotationLines | one |
ShippingMethod | ShippingMethods | one |
DocumentLinks | DocumentLinks | many |
QuoteCalculationAssemblies | QuoteCalculationAssemblies | many |
Actions
nextId
GET https://odata-api.fledge.nl/v2-8/QuoteCalculationHeaders/nextId(…)Returns QuoteCalculationHeaderNextIdResultDto
Licenses: BASIS
recalculate
POST https://odata-api.fledge.nl/v2-8/QuoteCalculationHeaders(administration_id=1,quote_calculation_header_id='{quote_calculation_header_id}')/recalculatedelete_orphan_assembliesBooleanpricing_modeCalculationPricingMode
Licenses: BEHEER, PRODUCTIE, VERKOOP
transferPriceToSalesQuotation
POST https://odata-api.fledge.nl/v2-8/QuoteCalculationHeaders(administration_id=1,quote_calculation_header_id='{quote_calculation_header_id}')/transferPriceToSalesQuotationdelete_instalmentsBooleanignore_amount_differenceBoolean
Licenses: PRODUCTIE, VERKOOP