Label in Fledge: Productieorder historie NC koop-/maakdelen

URLhttps://odata-api.fledge.nl/v2-8/HistoricProductionOrderPostCalculationBuyMakeParts
Keyadministration_idhistoric_production_order_assembly_idhistoric_production_order_header_idhistoric_production_order_post_calculation_buy_make_operation
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesPRODUCTIEBEHEER
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/HistoricProductionOrderPostCalculationBuyMakeParts" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=historic_production_order_assembly_id,historic_production_order_header_id,historic_production_order_post_calculation_buy_make_operation,cost_price,date,description_1' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/HistoricProductionOrderPostCalculationBuyMakeParts');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'historic_production_order_assembly_id,historic_production_order_header_id,historic_production_order_post_calculation_buy_make_operation,cost_price,date,description_1');
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/HistoricProductionOrderPostCalculationBuyMakeParts" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("historic_production_order_assembly_id,historic_production_order_header_id,historic_production_order_post_calculation_buy_make_operation,cost_price,date,description_1"),
    "$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/HistoricProductionOrderPostCalculationBuyMakeParts(administration_id=1,historic_production_order_assembly_id={historic_production_order_assembly_id},historic_production_order_header_id='{historic_production_order_header_id}',historic_production_order_post_calculation_buy_make_operation={historic_production_order_post_calculation_buy_make_operation})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
historic_production_order_post_calculation_buy_make_operationkeyInt32Volgnummer
historic_production_order_header_idkeyStringOrdernummer
historic_production_order_assembly_idkeyInt32Schrap
article_idStringArtikel
batch_idStringLotnummer/partijregistratie
cost_priceDecimalKostprijs
creditor_idInt32Leverancier
custom_field_1StringVrije veld 1
custom_field_10StringVrije veld 10
custom_field_11StringVrije veld 11
custom_field_12StringVrije veld 12
custom_field_13StringVrije veld 13
custom_field_14StringVrije veld 14
custom_field_15StringVrije veld 15
custom_field_16StringVrij veld 16
custom_field_17StringVrij veld 17
custom_field_18StringVrij veld 18
custom_field_19StringVrij veld 19
custom_field_2StringVrije veld 2
custom_field_20StringVrij veld 20
custom_field_21StringVrij veld 21
custom_field_22StringVrij veld 22
custom_field_23StringVrij veld 23
custom_field_24StringVrij veld 24
custom_field_25StringVrij veld 25
custom_field_3StringVrije veld 3
custom_field_4StringVrije veld 4
custom_field_5StringVrije veld 5
custom_field_6StringVrije veld 6
custom_field_7StringVrije veld 7
custom_field_8StringVrije veld 8
custom_field_9StringVrije veld 9
custom_fields_idInt32Volgnummer
dateDateDatum
delivery_textInt32Artikel/Tekst
description_1StringOmschrijving
description_2StringOmschrijving
description_3StringOmschrijving
financial_period_idInt32Periode
financial_yearInt32Boekjaar
historic_pre_calculation_buy_make_part_idInt32Volgnummer
memoStringMemo
order_codeStringBestelcode
pos_numberStringPos-nummer
post_calculation_amountDecimalBedrag NC
price_hoursDecimalKostprijs uren
price_totalDecimalTotaal kostprijs
production_order_assembly_idInt32Productie schrap
production_order_header_id_originStringOrder herkomst: Productieorder waarop het maakdeel geproduceerd is.
purchase_order_idStringInkooporder
purchase_order_line_idInt32Inkooporder regel
quantityDecimalAantal
sales_group_idInt32Omzetgroep
sales_priceDecimalVerkoopprijs
sourceInt32Herkomst
storageDecimalOpslag
total_price_hoursDecimalTotaal kostprijs uren
warehouse_address_idInt32Adres
warehouse_aisle_idInt32Magazijn
warehouse_shelf_idInt32Locatie

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
HistoricPreCalculationBuyMakePartHistoricPreCalculationBuyMakePartsone
HistoricProductionOrderAssemblyHistoricProductionOrderAssembliesone
HistoricProductionOrderHeaderHistoricProductionOrderHeadersone
Wingman