Label in Fledge: Onderhanden werk

URLhttps://odata-api.fledge.nl/v2-8/WorkInProgressItems
Keyadministration_idarticle_idfinancial_period_idfinancial_yearproduction_order_header_idwork_in_progress_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesPRODUCTIEFINANCIEELBEHEER
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratienummer
article_idkeyStringArtikelcode
financial_yearkeyInt32Boekjaar
work_in_progress_idkeyInt32Volgnummer
financial_period_idkeyInt32Periode nummer
production_order_header_idkeyStringOrder nummer
amount_creditedDecimalOHW-bew uit: Bedrag dat gecrediteerd is op OHW-bew rekening
amount_credited_mukoDecimalOHW-muko uit: Bedrag dat op rekenign OHW-muko gecrediteerd is.
cumulative_cost_price_buy_makeDecimalCumulatief kostprijs koop-/maakdelen
cumulative_cost_price_machineDecimalCumulatief kostprijs machine
cumulative_cost_price_man_hoursDecimalCumulatief kostprijs man
cumulative_cost_price_materialsDecimalCumulatief kostprijs materialen
cumulative_cost_price_otherDecimalCumulatief kostprijs overige kosten
cumulative_cost_price_outsourcingDecimalCumulatief kostprijs uitbestedingen
cumulative_machine_hoursInt32Cumulatief machineuren (in sec.)
cumulative_man_hoursInt32Cumulatief manuren (sec)
period_completed_production_orderInt32Periode gereedmelding productieorder
status_completedInt32Productieorder gereedheidsstatus: 0 = aangemaakt, 1 = gereed, 2 = cumulatiefregel
year_completedInt32Jaar 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.

NavigationEntity set
AdministrationAdministrationsone
ArticleArticlesone
ProductionOrderheaderProductionOrderHeadersone
Wingman