One planned line of an outsourced item (uitbesteding) of a production order assembly in the pre-calculation (voorcalculatie). What was booked against it is in PostCalculationOutsourcedItems; a purchase order line is linked through PurchaseOrderProductionOrderLinks. Only live orders: a finished order's lines are not in this set.

Label in Fledge: Productieorder VC uitbestedingen

URLhttps://odata-api.fledge.nl/v2-8/PreCalculationOutsourcedItems
Keyadministration_idpre_calculation_outsourced_item_idproduction_order_assembly_idproduction_order_header_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesPRODUCTIE
ScopesFLEDGE_PORTALFLEDGE_TERMINAL

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/PreCalculationOutsourcedItems" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=pre_calculation_outsourced_item_id,production_order_assembly_id,production_order_header_id,date_available,is_quantity_independent,is_reserved' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/PreCalculationOutsourcedItems');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'pre_calculation_outsourced_item_id,production_order_assembly_id,production_order_header_id,date_available,is_quantity_independent,is_reserved');
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/PreCalculationOutsourcedItems" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("pre_calculation_outsourced_item_id,production_order_assembly_id,production_order_header_id,date_available,is_quantity_independent,is_reserved"),
    "$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/PreCalculationOutsourcedItems(administration_id=1,pre_calculation_outsourced_item_id={pre_calculation_outsourced_item_id},production_order_assembly_id={production_order_assembly_id},production_order_header_id='{production_order_header_id}')

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
production_order_header_idkeyStringOrder nummer
production_order_assembly_idkeyInt32Schrapnummer
pre_calculation_outsourced_item_idkeyInt32Uitbestdings nr.: Uitbestedings nummer
additionDecimalOpslag
date_availableDateGewenste beschikbaarheid

The desired availability date (gewenste beschikbaarheid); can be empty. A purchase order made from the order advice doesn't take it over as its delivery date.

description_1StringOmschrijving
description_2StringOmschrijving
description_3StringOmschrijving
drawing_numberStringTekeningnummer
instructionInt32Voorschrift
is_archivedBooleanArchief: Gearchiveerd
is_finished_stockBooleanVoorraad afgw.: Voorraad afgewerkt
is_orderedBooleanBesteld j/n
is_stockBooleanVoorraad j/n
measure_surfaceBooleanBepaal oppervlakte
measure_weightBooleanBepaal gewicht
memoStringMemo
order_is_finishedBooleanBesteld afgewerkt
pre_calculation_amountDecimalDeclarabel bedrag
produceBooleanProduceren
production_finishedBooleanProduceren afgw.: Produceren afgewerkt
revisionStringRevisie
supplier_textInt32Lev/art/tekst: Leverancier/artikel/tekst
is_quantity_independentBooleanAantal onafhankelijk

True when the line counts once per order, whatever the quantity.

article_idStringArtikelcode
creditor_idInt32Crediteurnummer
article_custom_field_set_idInt32Volgnummer
is_reservedBooleanGereserveerd j/n

Stock is reserved for what is still needed, set when the assembly reaches the reservation status.

main_operation_idInt32Hoofdbewerkings nummer
next_stepInt32Vervolg (voorraad, inkoop, productie)

What happens to the line, set by the backend. 0 means the need is still open (it shows in the order advice).

  • 0 None yet (the need is open)
  • 1 Stock (Uitgegeven)
  • 2 Purchase (Besteld)
  • 3 Production (Wordt geproduceerd)
  • 4 Return (Retour)
  • 5 Production on a separate order
position_numberStringPos nummer
post_calculation_quantityDecimalAantal NC: Aantal gebruikt in NC

What has been accounted for so far in the post-calculation, by issues and purchase receipts.

priceDecimalPrijs

The planned price for one unit of the assembly: multiply by the assembly's calculation_quantity for the order, except a line with is_quantity_independent, which counts once.

quantityDecimalAantal
sequenceInt32Volgorde
sub_operation_idInt32Subbewerkingsnummer
total_quantityDecimalTotaal aantal VC

What the whole assembly needs, in the article's price unit, with net or gross and trade sizes applied. Still needed = total_quantity - post_calculation_quantity.

warehouse_address_idInt32Adresnummer
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
ArticleArticlesone
CreditorCreditorsone
ProductionOrderAssembliesProductionOrderAssembliesone
ProductionOrderHeaderProductionOrderHeadersone
WarehouseAddressWarehouseAddressesone
WarehouseAisleWarehouseAislesone
WarehouseShelfWarehouseShelfsone
PostCalculationOutsourcedItemsPostCalculationOutsourcedItemsmany
PreCalculationSubOperationLinksPreCalculationSubOperationLinksmany
PurchaseOrderProductionOrderLinksPurchaseOrderProductionOrderLinksmany

Actions

issueOut

POST https://odata-api.fledge.nl/v2-8/PreCalculationOutsourcedItems(administration_id=1,pre_calculation_outsourced_item_id={pre_calculation_outsourced_item_id},production_order_assembly_id={production_order_assembly_id},production_order_header_id='{production_order_header_id}')/issueOut
  • account_date Date
  • quantity Decimal
  • postcalculation_excess_percentage Decimal
  • recalculate_origin RecalculationOriginsEnum

Returns PreCalculationOutsourcedItem

Licenses: PRODUCTIE

Wingman