Label in Fledge: Verkooporder kostprijzen van gekoppelde productieorder
| URL | https://odata-api.fledge.nl/v2-8/SalesPriceProductionLinks |
|---|---|
| Key | administration_idproduction_order_header_idsales_price_production_link_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPP |
| Write licenses | BEHEER |
| Scopes | FLEDGE_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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
production_order_header_idkey | String | Order nummer |
sales_price_production_link_idkey | Int32 | Volgnummer |
cost_price_account | String | Kostprijsrekening: Rekening gebruikt voor kostprijs |
stock_ledger_account | String | Voorraadrekening: Rekening gebruikt voor voorraad |
quantity | Decimal | Aantal |
amount | Decimal | Bedrag |
session | Int32 | Sessie |
to_be_processed | Decimal | Het aantal dat nog te verwerken is |
type | Int32 | Type (materiaal, uitbesteding, uren) |
revenue_group_id | Int32 | Omzetgroep |