Label in Fledge: Verkooporder kostprijzen van gekoppelde productieorder

URLhttps://odata-api.fledge.nl/v2-8/SalesPriceProductionLinks
Keyadministration_idproduction_order_header_idsales_price_production_link_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPP
Write licensesBEHEER
ScopesFLEDGE_PORTALFLEDGE_TERMINAL

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/SalesPriceProductionLinks" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=production_order_header_id,sales_price_production_link_id,cost_price_account,quantity,amount' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/SalesPriceProductionLinks');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'production_order_header_id,sales_price_production_link_id,cost_price_account,quantity,amount');
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/SalesPriceProductionLinks" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("production_order_header_id,sales_price_production_link_id,cost_price_account,quantity,amount"),
    "$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/SalesPriceProductionLinks(administration_id=1,production_order_header_id='{production_order_header_id}',sales_price_production_link_id={sales_price_production_link_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
production_order_header_idkeyStringOrder nummer
cost_price_accountStringKostprijsrekening: Rekening gebruikt voor kostprijs
stock_ledger_accountStringVoorraadrekening: Rekening gebruikt voor voorraad
quantityDecimalAantal
amountDecimalBedrag
sessionInt32Sessie
to_be_processedDecimalHet aantal dat nog te verwerken is
typeInt32Type (materiaal, uitbesteding, uren)
revenue_group_idInt32Omzetgroep
Wingman