Label in Fledge: Productieorder historie NC uitbestedingen
| URL | https://odata-api.fledge.nl/v2-8/HistoricProductionOrderPostCalculationOutsourcedItems |
|---|---|
| Key | administration_idhistoric_production_order_assembly_idhistoric_production_order_header_idhistoric_production_order_post_calculation_outsourced_item_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIEBEHEER |
| 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/HistoricProductionOrderPostCalculationOutsourcedItems" \
--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_outsourced_item_id,amount_post_calculation,date,description_1' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/HistoricProductionOrderPostCalculationOutsourcedItems');
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_outsourced_item_id,amount_post_calculation,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/HistoricProductionOrderPostCalculationOutsourcedItems" + "?" + 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_outsourced_item_id,amount_post_calculation,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/HistoricProductionOrderPostCalculationOutsourcedItems(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_outsourced_item_id={historic_production_order_post_calculation_outsourced_item_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
historic_production_order_post_calculation_outsourced_item_idkey | Int32 | Volgnummer |
historic_production_order_header_idkey | String | Ordernummer |
historic_production_order_assembly_idkey | Int32 | Schrap |
amount_post_calculation | Decimal | Bedrag NC |
article_custom_field_set_id | Int32 | Volgnummer |
article_id | String | Artikel |
article_text | Int32 | Artikel/tekst |
creditor_id | Int32 | Leverancier |
custom_field_1 | String | vrije veld 1 |
custom_field_10 | String | Vrije veld 10 |
custom_field_11 | String | Vrije veld 11 |
custom_field_12 | String | Vrije veld 12 |
custom_field_13 | String | Vrije veld 13 |
custom_field_14 | String | Vrije veld 14 |
custom_field_15 | String | Vrije veld 15 |
custom_field_16 | String | Vrij veld 16 |
custom_field_17 | String | Vrij veld 17 |
custom_field_18 | String | Vrij veld 18 |
custom_field_19 | String | Vrij veld 19 |
custom_field_2 | String | Vrije veld 2 |
custom_field_20 | String | Vrij veld 20 |
custom_field_21 | String | Vrij veld 21 |
custom_field_22 | String | Vrij veld 22 |
custom_field_23 | String | Vrij veld 23 |
custom_field_24 | String | Vrij veld 24 |
custom_field_25 | String | Vrij veld 25 |
custom_field_3 | String | Vrije veld 3 |
custom_field_4 | String | Vrije veld 4 |
custom_field_5 | String | Vrije veld 5 |
custom_field_6 | String | Vrije veld 6 |
custom_field_7 | String | Vrije veld 7 |
custom_field_8 | String | Vrije veld 8 |
custom_field_9 | String | Vrije veld 9 |
date | Date | Datum |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
financial_period_id | Int32 | Periode |
financial_year | Int32 | Boekjaar |
historic_pre_calculation_outsourced_item_id | Int32 | Volgnummer |
lot_number_id | String | Lotnummer/partijregistratie |
memo | String | Memo |
order_code | String | Bestelcode |
origin | Int32 | Herkomst |
pos_number | String | Pos nummer |
price | Decimal | Kostprijs |
purchase_order_header_id | String | Inkooporder |
purchase_order_line_id | Int32 | Inkooporder regel |
quantity | Decimal | Aantal |
revenue_group_id | Int32 | Omzetgroep |
sales_price | Decimal | Verkoopprijs |
storage | Decimal | Opslag |
total_price | Decimal | Totaal kostprijs |
warehouse_address_id | Int32 | Adres |
warehouse_aisle_id | Int32 | Magazijn |
warehouse_shelf_id | Int32 | Locatie |
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 |
HistoricPreCalculationOutsourcedItems | HistoricPreCalculationOutsourcedItems | one |
HistoricProductionOrderAssembly | HistoricProductionOrderAssemblies | one |
HistoricProductionOrderHeader | HistoricProductionOrderHeaders | one |