ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/logistics/synchro/raw-materials/route
GET
Function GET
GET
()
:
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
materials
:
{
id
:
string
;
code
:
string
;
name
:
string
;
description
:
string
|
null
;
unit
:
string
;
unitId
:
string
|
null
;
supplier
:
{
code
:
string
;
id
:
string
;
name
:
string
}
|
null
;
stockLots
:
{
id
:
any
;
lotNumber
:
any
;
quantity
:
any
;
location
:
any
;
warehouse
:
any
;
}
[]
;
totalStock
:
any
;
theoreticalConsumption
:
number
;
availableStock
:
number
;
consumptionDetails
:
{
ofNumber
:
string
;
ofId
:
string
;
productCode
:
string
;
productName
:
string
;
quantityRequired
:
number
;
quantityPerUnit
:
number
;
plannedQuantity
:
number
;
status
:
string
;
}
[]
;
usedInProducts
:
string
[]
;
status
:
string
;
}
[]
;
summary
:
{
total
:
number
;
critical
:
number
;
warning
:
number
;
ok
:
number
}
;
}
,
>
,
>
Returns
Promise
<
|
NextResponse
<
{
error
:
string
}
>
|
NextResponse
<
{
materials
:
{
id
:
string
;
code
:
string
;
name
:
string
;
description
:
string
|
null
;
unit
:
string
;
unitId
:
string
|
null
;
supplier
:
{
code
:
string
;
id
:
string
;
name
:
string
}
|
null
;
stockLots
:
{
id
:
any
;
lotNumber
:
any
;
quantity
:
any
;
location
:
any
;
warehouse
:
any
;
}
[]
;
totalStock
:
any
;
theoreticalConsumption
:
number
;
availableStock
:
number
;
consumptionDetails
:
{
ofNumber
:
string
;
ofId
:
string
;
productCode
:
string
;
productName
:
string
;
quantityRequired
:
number
;
quantityPerUnit
:
number
;
plannedQuantity
:
number
;
status
:
string
;
}
[]
;
usedInProducts
:
string
[]
;
status
:
string
;
}
[]
;
summary
:
{
total
:
number
;
critical
:
number
;
warning
:
number
;
ok
:
number
}
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...