Label in Fledge: Productieorder historie NC materialen
| URL | https://odata-api.fledge.nl/v2-8/HistoricProductionOrderPostCalculationMaterials |
|---|---|
| Key | administration_idhistoric_production_order_assembly_idhistoric_production_order_post_calculation_material_idhistorical_production_order_header_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/HistoricProductionOrderPostCalculationMaterials" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=historic_production_order_assembly_id,historic_production_order_post_calculation_material_id,historical_production_order_header_id,date,description_1,description_2' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/HistoricProductionOrderPostCalculationMaterials');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'historic_production_order_assembly_id,historic_production_order_post_calculation_material_id,historical_production_order_header_id,date,description_1,description_2');
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/HistoricProductionOrderPostCalculationMaterials" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("historic_production_order_assembly_id,historic_production_order_post_calculation_material_id,historical_production_order_header_id,date,description_1,description_2"),
"$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/HistoricProductionOrderPostCalculationMaterials(administration_id=1,historic_production_order_assembly_id={historic_production_order_assembly_id},historic_production_order_post_calculation_material_id={historic_production_order_post_calculation_material_id},historical_production_order_header_id='{historical_production_order_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
historic_production_order_post_calculation_material_idkey | Int32 | Volgnummer |
historical_production_order_header_idkey | String | Ordernummer |
historic_production_order_assembly_idkey | Int32 | Schrap |
article_id | String | Artikel |
article_location_id | String | Lotnummer/partijregistratie |
calculation_method | Int32 | Rekenmethode |
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 |
custom_fields_id | Int32 | Volgnummer |
date | Date | Datum |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
financial_period_id | Int32 | Periode |
financial_year | Int32 | Boekjaar |
gross_weight | Decimal | Gewicht bruto |
historic_production_order_pre_calculation_material_id | Int32 | Volgnummer |
material | Int32 | Artikel/tekst |
material_price_amount_of_sawing | Int32 | Aantal maal zagen |
material_price_angle_1 | Decimal | Hoek 1 |
material_price_angle_2 | Decimal | Hoek 2 |
material_price_has_multiple_angles | Boolean | Meerdere hoeken |
material_price_net | Decimal | Prijs netto |
material_price_operation_tracking_number_1 | Int32 | Intern volgnummer |
material_price_operation_tracking_number_2 | Int32 | Intern volgnummer |
material_price_operation_tracking_number_3 | Int32 | Intern volgnummer |
material_price_operation_tracking_number_4 | Int32 | Nummer: Bewerkingsprijs 4 |
material_price_operation_tracking_number_5 | Int32 | Nummer: Bewerkingsprijs 5 |
material_price_operation_tracking_number_6 | Int32 | Nummer: Bewerkingsprijs 6 |
material_price_operation_tracking_number_base | Int32 | Intern volgnummer |
material_price_overrun_serial_number_1 | Int32 | Nummer: Toeslagprijs 1 |
material_price_tracking_number_over | Int32 | Intern volgnummer |
material_shape_id | String | Materiaal vorm |
material_type_id | String | Materiaal soort |
memo | String | Memo |
net_gross_manual | Int32 | Netto/bruto/handmatig |
net_weight | Decimal | Gewicht netto |
order_code | String | Bestelcode |
order_gross | Decimal | Bestel bruto |
order_net | Decimal | Bestel netto |
parameter_1 | Decimal | Parameter 1 |
parameter_2 | Decimal | Parameter 2 |
parameter_3 | Decimal | Parameter 3 |
parameter_4 | Decimal | Parameter 4 |
parameter_5 | Decimal | Parameter 5 |
parameter_6 | Decimal | Parameter 6 |
pos_number | String | Pos-nummer |
post_calculation_amount | Decimal | Bedrag NC |
pre_calculation_material_addition | Boolean | Toeslag |
pre_calculation_material_do_miter_saw | Boolean | Verstekzagen |
pre_calculation_material_do_saw | Boolean | Zagen |
pre_calculation_material_fire | Boolean | Branden |
pre_calculation_material_has_fixed_length | Boolean | Fixed lengte |
pre_calculation_material_has_miter_saw_price | Boolean | Toepassen verstekzaagprijs |
pre_calculation_material_overprice | Boolean | Overprijs |
pre_calculation_material_radius | Boolean | Stralen |
pre_calculation_material_sand_blast_and_prime | Boolean | Stralen + menie`: Stralen + menie |
pre_calculation_material_sand_blast_and_sigma_weld | Boolean | Stralen + sigmaweld |
price | Decimal | Prijs |
price_gross | Decimal | Prijs bruto |
price_system | Int32 | Prijssysteem |
price_total | Decimal | Totaal kostprijs |
price_unit | Decimal | Prijs eenheid |
purchase_order_header_id | String | Inkooporder |
purchase_order_line_id | Int32 | Inkooporder regel |
quantity | Decimal | Aantal |
sales_group_id | Int32 | Omzetgroep |
saw_cut | Decimal | Zaagsnede |
sawing_type | Int32 | Type verstekzagen (liggend, staand) |
source | Int32 | Herkomst |
storage | Decimal | Opslag |
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 |
HistoricPreCalculationMaterial | HistoricPreCalculationMaterials | one |
HistoricProductionOrderAssembly | HistoricProductionOrderAssemblies | one |
HistoricProductionOrderHeader | HistoricProductionOrderHeaders | one |