ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/production/manufacturing-orders/[id]/route
GET
Function GET
GET
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
billOfMaterial
:
|
{
finishedProductComponent
:
{}
|
null
;
rawMaterial
:
{}
|
null
;
}
&
{}
|
null
;
childMOs
:
{
finishedProduct
:
{
code
:
string
;
name
:
string
}
;
id
:
string
;
number
:
string
;
status
:
ManufacturingOrderStatus
;
}
[]
;
client
:
|
{
code
:
string
;
email
:
string
|
null
;
id
:
string
;
name
:
string
;
phone
:
string
|
null
;
}
|
null
;
createdBy
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
files
:
{}
[]
;
finishedProduct
:
{
billOfMaterials
:
(
{
finishedProductComponent
:
{}
|
null
;
rawMaterial
:
{}
|
null
}
&
{}
)
[]
;
category
:
{}
|
null
;
}
&
{}
;
labels
:
{}
[]
;
parentMO
:
|
{
id
:
string
;
number
:
string
;
status
:
ManufacturingOrderStatus
;
}
|
null
;
planner
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
qualityControls
:
(
{
operation
:
{
code
:
string
;
name
:
string
}
;
performedByUser
:
{
name
:
string
|
null
}
|
null
;
}
&
{}
)
[]
;
routing
:
|
{
operations
:
(
{
equipment
:
(...)
|
(...)
;
workCenter
:
(...)
|
(...)
;
workStation
:
(...)
|
(...)
;
}
&
{}
)
[]
;
}
&
{}
|
null
;
salesOrder
:
|
{
client
:
{
code
:
string
;
id
:
string
;
name
:
string
}
;
clientOrderNumber
:
string
|
null
;
deliveryDate
:
Date
|
null
;
id
:
string
;
number
:
string
;
orderDate
:
Date
;
status
:
SalesOrderStatus
;
}
|
null
;
stockMovements
:
(
{
finishedProduct
:
{
code
:
string
;
name
:
string
}
|
null
;
rawMaterial
:
{
code
:
string
;
name
:
string
}
|
null
;
}
&
{}
)
[]
;
supervisor
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
workOrders
:
(
{
assignedOperator
:
{
id
:
string
;
name
:
string
|
null
}
|
null
;
operation
:
{
code
:
string
;
id
:
string
;
name
:
string
}
|
null
;
workStation
:
{
code
:
string
;
id
:
string
;
name
:
string
}
|
null
;
}
&
{}
)
[]
;
producedQuantity
:
number
;
scrapQuantity
:
number
;
_calculatedFromWorkOrders
:
{
producedQuantity
:
number
;
scrapQuantity
:
number
;
}
;
}
,
>
,
>
Parameters
request
:
Request
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
billOfMaterial
:
|
{
finishedProductComponent
:
{}
|
null
;
rawMaterial
:
{}
|
null
;
}
&
{}
|
null
;
childMOs
:
{
finishedProduct
:
{
code
:
string
;
name
:
string
}
;
id
:
string
;
number
:
string
;
status
:
ManufacturingOrderStatus
;
}
[]
;
client
:
|
{
code
:
string
;
email
:
string
|
null
;
id
:
string
;
name
:
string
;
phone
:
string
|
null
;
}
|
null
;
createdBy
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
files
:
{}
[]
;
finishedProduct
:
{
billOfMaterials
:
(
{
finishedProductComponent
:
{}
|
null
;
rawMaterial
:
{}
|
null
}
&
{}
)
[]
;
category
:
{}
|
null
;
}
&
{}
;
labels
:
{}
[]
;
parentMO
:
|
{
id
:
string
;
number
:
string
;
status
:
ManufacturingOrderStatus
;
}
|
null
;
planner
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
qualityControls
:
(
{
operation
:
{
code
:
string
;
name
:
string
}
;
performedByUser
:
{
name
:
string
|
null
}
|
null
;
}
&
{}
)
[]
;
routing
:
|
{
operations
:
(
{
equipment
:
(...)
|
(...)
;
workCenter
:
(...)
|
(...)
;
workStation
:
(...)
|
(...)
;
}
&
{}
)
[]
;
}
&
{}
|
null
;
salesOrder
:
|
{
client
:
{
code
:
string
;
id
:
string
;
name
:
string
}
;
clientOrderNumber
:
string
|
null
;
deliveryDate
:
Date
|
null
;
id
:
string
;
number
:
string
;
orderDate
:
Date
;
status
:
SalesOrderStatus
;
}
|
null
;
stockMovements
:
(
{
finishedProduct
:
{
code
:
string
;
name
:
string
}
|
null
;
rawMaterial
:
{
code
:
string
;
name
:
string
}
|
null
;
}
&
{}
)
[]
;
supervisor
:
{
email
:
string
;
id
:
string
;
name
:
string
|
null
}
|
null
;
workOrders
:
(
{
assignedOperator
:
{
id
:
string
;
name
:
string
|
null
}
|
null
;
operation
:
{
code
:
string
;
id
:
string
;
name
:
string
}
|
null
;
workStation
:
{
code
:
string
;
id
:
string
;
name
:
string
}
|
null
;
}
&
{}
)
[]
;
producedQuantity
:
number
;
scrapQuantity
:
number
;
_calculatedFromWorkOrders
:
{
producedQuantity
:
number
;
scrapQuantity
:
number
;
}
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...