Retrieves all used parts

Request Information

URI Parameters :

None.

Body Parameters :

None.

Response Information

Resource Description :

IHttpActionResult

job_part_usage
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier

Required

jobs_id

Foreign key of jobs

globally unique identifier

Required

article_id

Foreign key of article. Can be empty if user keys in manually the object

globally unique identifier
user_id

Foreign key, user that uses this part

globally unique identifier

Required

article_stock_location_id

In case of stock management enabled, the stock that has been used

globally unique identifier
working_date

Date when the part has been used

date
code

Code of the part (filled by article.code or manually by the user)

string

Max length: 255

name

Name of the part (filled by article.name or manually by the user)

string

Max length: 255

description

Description of the part (filled by article.description or manually by the user)

string

Max length: 255

quantity

Quantity

decimal number

Required

Range: inclusive between 0.1 and 1.79769313486232E+308

price

Unit price of the part. Computed with the price logic or filled via purchase_order_details.price

decimal number
remark

Remark / Line memo

string

Max length: 255

purchase_order_details_id

Foreign key of purchase_order_details, if the line was generated based on a purchase_order_details

globally unique identifier
signed_by_company

Object was included in a job approval and signed (readonly)

boolean
job_approval_id

Foreign key to the approval this lines belongs

globally unique identifier
is_under_warranty

If the system detects that line was included in the warranty, price will be 0

boolean
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date

Response Formats

application/json, text/json

Sample:
{
  "id": "5a8daff1-9868-42ed-8855-676ad60030dc",
  "jobs_id": "a7fa931e-0b7e-43b0-ba34-06b5f341b68c",
  "article_id": "e11045de-60dc-4cc3-87b8-71ce3e943c45",
  "user_id": "ee273a18-cea6-4784-9f1c-f80793705183",
  "article_stock_location_id": "cc34627c-b28f-4baa-b103-04eccff5cc90",
  "working_date": "2024-04-20T13:39:25.4905595+00:00",
  "code": "sample string 7",
  "name": "sample string 8",
  "description": "sample string 9",
  "quantity": 10.0,
  "price": 11.0,
  "remark": "sample string 12",
  "purchase_order_details_id": "20200864-0091-4acd-820e-a571df2b8940",
  "signed_by_company": true,
  "job_approval_id": "90e19253-4164-42f3-9011-adcb60538190",
  "is_under_warranty": true,
  "modified_dateutc": "2024-04-20T13:39:25.4905595+00:00"
}