Label in Fledge: NC-materiaalregels
| URL | https://odata-api.fledge.nl/v2-8/PostCalculationMaterials |
|---|---|
| Key | administration_idpost_calculation_material_idproduction_order_assembly_idproduction_order_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISPRODUCTIEURENPC |
| Write licenses | PRODUCTIEBEHEER |
| Scopes | FLEDGE_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/PostCalculationMaterials" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=post_calculation_material_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/PostCalculationMaterials');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'post_calculation_material_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/PostCalculationMaterials" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("post_calculation_material_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/PostCalculationMaterials(administration_id=1,post_calculation_material_id={post_calculation_material_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_material_idkey | Int32 | Volgnummer |
production_order_header_idkey | String | Order nummer |
production_order_assembly_idkey | Int32 | Schrapnummer |
addition | Boolean | Toeslag |
allowance | Int32 | Nummer: Toeslagprijs 1 |
angle_1 | Decimal | Hoek 1 |
angle_2 | Decimal | Hoek 2 |
archive | Boolean | Archief: Gearchiveerd |
burn | Boolean | Branden |
calculation_method | Int32 | Rekenmethode |
date | Date | Datum |
delivery_code | String | Bestelcode |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
do_miter_saw | Boolean | Verstekzagen |
do_saw | Boolean | Zagen |
financial_period_id | Int32 | Periode nummer |
financial_year | Int32 | Boekjaar |
has_miter_saw_price | Boolean | Toepassen verstekzaagprijs |
internal_serial_number_1 | Int32 | Intern volgnummer |
internal_serial_number_2 | Int32 | Intern volgnummer |
internal_serial_number_3 | Int32 | Intern volgnummer |
internal_serial_number_4 | Int32 | Nummer: Bewerkingsprijs 4 |
internal_serial_number_5 | Int32 | Nummer: Bewerkingsprijs 5 |
internal_serial_number_6 | Int32 | Nummer: Bewerkingsprijs 6 |
internal_serial_number_base | Int32 | Intern volgnummer |
internal_serial_number_over | Int32 | Intern volgnummer |
invoice_number | String | Faktuurnummer |
is_blocked | Boolean | Parkeren |
is_financially_blocked | Boolean | Financieel geblokkeerd |
is_financially_processed | Boolean | Fin. verwerkt: Financieel verrwerkt |
material_article_or_text | Int32 | Mat/art/tekst: Materiaal/artikel/tekst |
material_shape_id | String | Materiaalvorm code |
material_type_id | String | Materiaalsoort: alfanumerieke code voor het materiaal, 15 karakters lang |
memo | String | Memo |
multiple_angles | Boolean | Meerdere hoeken |
net_gross_or_manual | Int32 | Netto/Bruto/Handmatig |
net_price | Decimal | Prijs netto |
number_of_saw_cuts | Int32 | Aantal maal zagen |
order_gross | Decimal | Bestel bruto |
order_net | Decimal | Bestel netto |
origin | Int32 | Herkomst |
over_price | Boolean | Overprijs |
position_number | String | Pos-nummer |
pre_calculation_material_id | Int32 | Mat.nummer: Materiaal nummer |
price_difference | Boolean | Prijsverschil of niet |
price_gross | Decimal | Prijs bruto |
price_system | Int32 | Prijssysteem |
price_total | Decimal | Totaal kostprijs |
price_unit | Decimal | Prijs eenheid |
radius | Boolean | Stralen |
sandblast_lead_paint | Boolean | Stralen + menie`: Stralen + menie |
sandblast_sigmaweld | Boolean | Stralen + sigmaweld |
sequence | Int32 | Volgorde |
status | Boolean | Status |
surcharge | Decimal | Opslag |
type_of_miter | Int32 | Type verstekzagen (liggend, staand) |
value_post_calculation | Decimal | Bedrag NC |
weight_gross | Decimal | Gewicht bruto |
weight_net | Decimal | Gewicht netto |
is_fixed_length | Boolean | Fixed lengte |
parameter_1 | Decimal | Par 1: Parameter 1 |
parameter_2 | Decimal | Par 2 |
parameter_3 | Decimal | Par 3: Parameter 3 |
parameter_4 | Decimal | Par 4: Parameter 4 |
parameter_5 | Decimal | Par 5: Parameter 5 |
parameter_6 | Decimal | Par 6: Parameter 6 |
quantity | Decimal | Aantal |
saw_cut | Decimal | Zaagsnede |
article_id | String | Artikelcode |
creditor_id | Int32 | Crediteurnummer |
article_custom_field_set_id | Int32 | Volgnummer |
lot_number | String | Lotnummer/partijregistratie |
price | Decimal | Prijs |
purchase_order_header_id | String | Ordernummer |
purchase_order_line_id | Int32 | Regelnummer |
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 |
MaterialShape | MaterialShapes | one |
MaterialType | MaterialTypes | one |
PreCalculationMaterial | PreCalculationMaterials | 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 |
Actions
augment
POST https://odata-api.fledge.nl/v2-8/PostCalculationMaterials/augmentReturns PostCalculationMaterial
Licenses: PRODUCTIE