Label in Fledge: Onderhanden werk
| URL | https://odata-api.fledge.nl/v2-8/WorkInProgressItems |
|---|---|
| Key | administration_idarticle_idfinancial_period_idfinancial_yearproduction_order_header_idwork_in_progress_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIEFINANCIEELBEHEER |
| 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/WorkInProgressItems" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=article_id,financial_period_id,financial_year,production_order_header_id,work_in_progress_id,amount_credited,amount_credited_muko,cumulative_cost_price_buy_make' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/WorkInProgressItems');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'article_id,financial_period_id,financial_year,production_order_header_id,work_in_progress_id,amount_credited,amount_credited_muko,cumulative_cost_price_buy_make');
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/WorkInProgressItems" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("article_id,financial_period_id,financial_year,production_order_header_id,work_in_progress_id,amount_credited,amount_credited_muko,cumulative_cost_price_buy_make"),
"$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/WorkInProgressItems(administration_id=1,article_id='{article_id}',financial_period_id={financial_period_id},financial_year={financial_year},production_order_header_id='{production_order_header_id}',work_in_progress_id={work_in_progress_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
article_idkey | String | Artikelcode |
financial_yearkey | Int32 | Boekjaar |
work_in_progress_idkey | Int32 | Volgnummer |
financial_period_idkey | Int32 | Periode nummer |
production_order_header_idkey | String | Order nummer |
amount_credited | Decimal | OHW-bew uit: Bedrag dat gecrediteerd is op OHW-bew rekening |
amount_credited_muko | Decimal | OHW-muko uit: Bedrag dat op rekenign OHW-muko gecrediteerd is. |
cumulative_cost_price_buy_make | Decimal | Cumulatief kostprijs koop-/maakdelen |
cumulative_cost_price_machine | Decimal | Cumulatief kostprijs machine |
cumulative_cost_price_man_hours | Decimal | Cumulatief kostprijs man |
cumulative_cost_price_materials | Decimal | Cumulatief kostprijs materialen |
cumulative_cost_price_other | Decimal | Cumulatief kostprijs overige kosten |
cumulative_cost_price_outsourcing | Decimal | Cumulatief kostprijs uitbestedingen |
cumulative_machine_hours | Int32 | Cumulatief machineuren (in sec.) |
cumulative_man_hours | Int32 | Cumulatief manuren (sec) |
period_completed_production_order | Int32 | Periode gereedmelding productieorder |
status_completed | Int32 | Productieorder gereedheidsstatus: 0 = aangemaakt, 1 = gereed, 2 = cumulatiefregel |
year_completed | Int32 | Jaar gereedmelding productieorder |
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 |
ProductionOrderheader | ProductionOrderHeaders | one |