Label in Fledge: Productieorder NC koop-/maakdelen
| URL | https://odata-api.fledge.nl/v2-8/PostCalculationBuyMakeParts |
|---|---|
| Key | administration_idpost_calculation_buy_make_part_idproduction_order_assembly_idproduction_order_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIE |
| 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/PostCalculationBuyMakeParts" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=post_calculation_buy_make_part_id,production_order_assembly_id,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/PostCalculationBuyMakeParts');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'post_calculation_buy_make_part_id,production_order_assembly_id,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/PostCalculationBuyMakeParts" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("post_calculation_buy_make_part_id,production_order_assembly_id,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/PostCalculationBuyMakeParts(administration_id=1,post_calculation_buy_make_part_id={post_calculation_buy_make_part_id},production_order_assembly_id={production_order_assembly_id},production_order_header_id='{production_order_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
post_calculation_buy_make_part_idkey | Int32 | Volgnummer |
production_order_header_idkey | String | Order nummer |
production_order_assembly_idkey | Int32 | Schrapnummer |
apply_replacement_value | Boolean | Vervangingswaarde toepassen (j/n) |
date | Date | Datum |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
financial_year | Int32 | Boekjaar |
has_financial_block | Boolean | Financieel geblokkeerd |
has_price_difference | Boolean | Prijsverschil of niet |
invoice_number | String | Faktuurnummer |
is_archived | Boolean | Archief: Gearchiveerd |
is_financially_processed | Boolean | Financieel verwerkt |
is_parked | Boolean | Parkeren: Blokkeren voor adviesprijs |
memo | String | Memo |
order_code | String | Bestelkode |
origin | Int32 | Herkomst |
period_id | Int32 | Periode nummer |
position_number | String | Pos-nummer |
post_calculation_amount | Decimal | Bedrag NC |
pre_calculation_buy_make_part_id | Int32 | Order koopdeel nummer |
price_hours | Decimal | Kostprijs uren |
price_total | Decimal | Totaal kostprijs |
price_total_hours | Decimal | Totaal kostprijs uren |
produced_assembly_id | Int32 | Productie schrap: Schrap waarin artikel geproduceerd is |
production_order_header_origin | String | Order herkomst: Productieorder waarop het maakdeel geproduceerd is. |
sales_price | Decimal | Verkoopprijs |
sequence | Int32 | Volgorde |
status | Boolean | Status |
supplier_text | Int32 | Lev/art/tekst: Leverancier/artikel/tekst |
surcharge | Decimal | Opslag |
article_custom_field_set_id | Int32 | Volgnummer |
article_id | String | Artikelcode |
lot_number | String | Lotnummer/partijregistratie |
creditor_id | Int32 | Crediteurnummer |
price | Decimal | Prijs |
purchase_order_header_id | String | Ordernummer |
purchase_order_line_id | Int32 | Regelnummer |
quantity | Decimal | Aantal |
revenue_group_id | Int32 | Omzetgroep |
warehouse_address_id | Int32 | Adresnummer |
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 |
Article | Articles | one |
ArticleCustomFieldSet | ArticleCustomFieldSets | one |
Creditor | Creditors | one |
PreCalculationBuyMakePart | PreCalculationBuyMakeParts | one |
ProductionOrderAssembly | ProductionOrderAssemblies | one |
ProductionOrderHeader | ProductionOrderHeaders | one |
PurchaseOrderHeader | PurchaseOrderHeaders | one |
PurchaseOrderLine | PurchaseOrderLines | one |
RevenueGroup | RevenueGroups | one |
WarehouseAddress | WarehouseAddresses | one |
WarehouseAisle | WarehouseAisles | one |
WarehouseShelf | WarehouseShelfs | one |