One planned line of a material (materiaal) of a production order assembly in the pre-calculation (voorcalculatie). What was booked against it is in PostCalculationMaterials; 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 materialen

URLhttps://odata-api.fledge.nl/v2-8/PreCalculationMaterials
Keyadministration_idpre_calculation_material_idproduction_order_assembly_idproduction_order_header_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISURENPC
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/PreCalculationMaterials" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=pre_calculation_material_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/PreCalculationMaterials');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'pre_calculation_material_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/PreCalculationMaterials" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("pre_calculation_material_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/PreCalculationMaterials(administration_id=1,pre_calculation_material_id={pre_calculation_material_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
pre_calculation_material_idkeyInt32Mat.nummer: Materiaal nummer
production_order_assembly_idkeyInt32Schrapnummer
additionBooleanToeslag
allowanceInt32Nummer: Toeslagprijs 1
amount_pre_calculationDecimalDeclarabel bedrag
angle_1DecimalHoek 1
angle_2DecimalHoek 2
burnBooleanBranden
calculation_methodInt32Rekenmethode
date_availableDateGewenste beschikbaarheids datum

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
description_specialStringOmschrijving speciaal
do_miter_sawBooleanVerstekzagen
do_sawBooleanZagen
drawing_numberStringTekeningnummer
gross_priceDecimalPrijs bruto
has_miter_saw_priceBooleanToepassen verstekzaagprijs
instructionInt32Voorschrift
internal_serial_number_1Int32Intern volgnummer
internal_serial_number_2Int32Intern volgnummer
internal_serial_number_3Int32Intern volgnummer
internal_serial_number_4Int32Nummer: Bewerkingsprijs 4
internal_serial_number_5Int32Nummer: Bewerkingsprijs 5
internal_serial_number_6Int32Nummer: Bewerkingsprijs 6
internal_serial_number_baseInt32Intern volgnummer
internal_serial_number_overInt32Intern volgnummer
is_archivedBooleanArchief: Gearchiveerd
is_finished_stockBooleanVoorraad afgewerkt
is_orderedBooleanBesteld
is_stockBooleanVoorraad
is_supplier_priceBooleanLeveranciersprijs (ja/nee)
material_shape_idStringMateriaalvorm code
material_textInt32Mat/art/tekst: Materiaal/artikel/tekst
material_type_idStringMateriaalsoort: alfanumerieke code voor het materiaal, 15 karakters lang
measure_surfaceBooleanBepaal oppervlakte
measure_weightBooleanBepaal gewicht
memoStringMemo
multiple_anglesBooleanMeerdere hoeken
net_gross_manualInt32Netto/Bruto/Handmatig
net_priceDecimalPrijs netto
number_of_saw_cutsInt32Aantal maal zagen
order_is_finishedBooleanBesteld afgewerkt
order_quantityDecimalBestel aantal
order_unit_grossDecimalBestel bruto: Besteleenheid bruto
order_unit_netDecimalBestel netto
over_priceBooleanOverprijs
price_systemInt32Prijssysteem
price_unitDecimalPrijs eenheid
produceBooleanProduceren
production_finishedBooleanProduceren afgw.: Produceren afgewerkt
purchase_statusInt32Inkoop status
radiusBooleanStralen
revisionStringRevisie
sandblast_lead_paintBooleanStralen + menie`: Stralen + menie
sandblast_sigmaweldBooleanStralen + sigmaweld
storageDecimalOpslag
type_of_miterInt32Type verstekzagen (liggend, staand)
weight_grossDecimalGewicht bruto
weight_netDecimalGewicht netto
is_quantity_independentBooleanAantal onafhankelijk

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

is_fixed_lengthBooleanFixed lengte
saw_cutDecimalZaagsnede
parameter_1DecimalPar 1: Parameter 1
parameter_2DecimalPar 2: Parameter 2
parameter_3DecimalPar 3: Parameter 3
parameter_4DecimalPar 4: Parameter 4
parameter_5DecimalPar 5: Parameter 5
parameter_6DecimalPar 6: Parameter 6
article_custom_field_set_idInt32Volgnummer
article_idStringArtikelcode
reservation_article_idStringArtikel (torm.part_code, msrt.part_code)
creditor_idInt32Crediteurnummer
is_reservedBooleanGereserveerd

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, retour)

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

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

priceDecimalPrijs per stuk

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
PostCalculationMaterialsPostCalculationMaterialsmany
PreCalculationSubOperationLinksPreCalculationSubOperationLinksmany
PurchaseOrderProductionOrderLinksPurchaseOrderProductionOrderLinksmany

Actions

augment

POST https://odata-api.fledge.nl/v2-8/PreCalculationMaterials/augment

Returns PreCalculationMaterial

Licenses: PRODUCTIE

issueOut

POST https://odata-api.fledge.nl/v2-8/PreCalculationMaterials(administration_id=1,pre_calculation_material_id={pre_calculation_material_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 PreCalculationMaterial

Licenses: PRODUCTIE

Wingman