Label in Fledge: Productieorder NC uitbestedingen
| URL | https://odata-api.fledge.nl/v2-8/PostCalculationOutsourcedItems |
|---|---|
| Key | administration_idpost_calculation_outsourced_item_idproduction_order_assembly_idproduction_order_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISPRODUCTIE |
| 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/PostCalculationOutsourcedItems" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=post_calculation_outsourced_item_id,production_order_assembly_id,production_order_header_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/PostCalculationOutsourcedItems');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'post_calculation_outsourced_item_id,production_order_assembly_id,production_order_header_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/PostCalculationOutsourcedItems" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("post_calculation_outsourced_item_id,production_order_assembly_id,production_order_header_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/PostCalculationOutsourcedItems(administration_id=1,post_calculation_outsourced_item_id={post_calculation_outsourced_item_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 |
production_order_header_idkey | String | Order nummer |
production_order_assembly_idkey | Int32 | Schrapnummer |
post_calculation_outsourced_item_idkey | Int32 | Volgnummer |
amount_post_calculation | Decimal | Bedrag NC |
article_custom_fields_id | Int32 | Volgnummer |
article_id | String | Artikelcode |
creditor_id | Int32 | Crediteurnummer |
date | Date | Datum |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
drawing_position_number | String | Pos nummer |
financial_period | Int32 | Periode nummer |
financial_year | Int32 | Boekjaar |
has_financial_block | Boolean | Financieel geblokkeerd |
has_price_difference | Boolean | Prijsverschil of niet |
has_status | Boolean | Status |
invoice_number | String | Faktuurnummer |
is_archived | Boolean | Archief: Gearchiveerd |
is_blocked | Boolean | Parkeren |
lot_number | String | Lotnummer/partijregistratie |
manufacturer_article_text | Int32 | Lev/art/tekst: Leverancier/artikel/tekst |
memo | String | Memo |
order_code | String | Bestelcode |
origin | Int32 | Herkomst |
pre_calculation_outsourced_item_id | Int32 | Uitbestdings nr.: Uitbestedings nummer |
price | Decimal | Prijs |
is_financially_processed | Boolean | Fin. verwerkt: Financieel verwerkt |
purchase_order_header_id | String | Ordernummer |
purchase_order_line_id | Int32 | Regelnummer |
quantity | Decimal | Aantal |
revenue_group | Int32 | Omzetgroep |
sales_price | Decimal | Verkoopprijs |
sequence | Int32 | Volgorde |
storage | Decimal | Opslag |
total_cost_price | Decimal | Totaal kostprijs |
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 |
PreCalculationOutsourcedItem | PreCalculationOutsourcedItems | one |
ProductionOrderAssembly | ProductionOrderAssemblies | one |
ProductionOrderHeader | ProductionOrderHeaders | one |
PurchaseOrderHeader | PurchaseOrderHeaders | one |
PurchaseOrderLines | PurchaseOrderLines | one |
RevenueGroup | RevenueGroups | one |
WarehouseAddress | WarehouseAddresses | one |
WarehouseAisle | WarehouseAisles | one |
WarehouseShelf | WarehouseShelfs | one |