ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/logistics/synchro/raw-materials/[id]/sync/route
GET
Function GET
GET
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
,
)
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
material
:
{
id
:
string
;
code
:
string
;
name
:
string
;
unit
:
string
;
supplier
:
string
|
undefined
;
}
;
currentStock
:
{
total
:
number
;
lots
:
{
id
:
string
;
lotNumber
:
string
;
quantity
:
number
;
warehouse
:
string
;
location
:
string
|
undefined
;
}
[]
;
}
;
consumption
:
{
totalRequired
:
number
;
details
:
(
|
{
ofId
:
string
;
ofNumber
:
string
;
status
:
ManufacturingOrderStatus
;
productCode
:
string
;
productName
:
string
;
plannedQuantity
:
number
;
requiredQuantity
:
number
;
}
|
null
)
[]
;
}
;
balance
:
number
;
recommendations
:
string
[]
;
}
,
>
,
>
Parameters
request
:
Request
__namedParameters
:
{
params
:
Promise
<
{
id
:
string
}
>
}
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
material
:
{
id
:
string
;
code
:
string
;
name
:
string
;
unit
:
string
;
supplier
:
string
|
undefined
;
}
;
currentStock
:
{
total
:
number
;
lots
:
{
id
:
string
;
lotNumber
:
string
;
quantity
:
number
;
warehouse
:
string
;
location
:
string
|
undefined
;
}
[]
;
}
;
consumption
:
{
totalRequired
:
number
;
details
:
(
|
{
ofId
:
string
;
ofNumber
:
string
;
status
:
ManufacturingOrderStatus
;
productCode
:
string
;
productName
:
string
;
plannedQuantity
:
number
;
requiredQuantity
:
number
;
}
|
null
)
[]
;
}
;
balance
:
number
;
recommendations
:
string
[]
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...