Material
Resource
Materials
Module
Endpoints | URI | Access Control | Description |
---|---|---|---|
units | GET /api/Material/units |
Endpoint level permissions | |
get | GET /api/Material/get |
Admin or Module READ | Materials should always be readable by service technicians |
update-pricing | POST /api/Material/update-pricing |
Endpoint level permissions | Similar to batch-save, except it matches parts by the supplier_number if present, otherwise part_number, and only updates the material_price field. If supplier_number is present in csv, but not populated in the db, update that field as well |
save | POST /api/Material/save |
Admin or Module WRITE | |
save-batch | POST /api/Material/save-batch |
Admin or Module WRITE | Updates the precalculated prices on each assembly that the specified material belongs to |
delete | POST /api/Material/delete |
Admin or Module WRITE | |
find | GET /api/Material/find |
Admin or Module READ |
Property | Type | Description |
---|---|---|
id |
number | |
slug |
string | |
supplier_id |
number | |
category_id |
number | |
description |
string | |
part_number |
string | |
supplier_number |
string | |
manufacturer |
string | |
per |
number | |
material_unit_type |
string | |
material_price |
number | |
list_price |
number | |
labour_hrs |
number | |
comments |
string | |
price_updated |
date | |
is_draft |
boolean | |
created_at |
datetime | |
updated_at |
datetime | |
updated_by |
number |
Setting | |
---|---|
Pagination Limit (when page parameter is set) |
50 per page |
Default Sort Order | By insertion order |
Related Resource | Key | Relationship to Material | Property |
---|---|---|---|
MaterialCategory | category_id |
Belongs To | MaterialCategory |
Contact | supplier_id |
Belongs To | Supplier |