ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
app/api/tablet/labels/route
GET
Function GET
GET
(
request
:
NextRequest
,
)
:
Promise
<
|
NextResponse
<
{
success
:
boolean
;
rawMaterials
:
any
[]
;
finishedProducts
:
any
[]
;
stats
:
{
rawMaterials
:
{
total
:
number
;
totalStock
:
any
;
totalLots
:
any
;
totalLabels
:
any
;
}
;
finishedProducts
:
{
total
:
number
;
totalStock
:
any
;
totalLots
:
any
;
totalLabels
:
any
;
}
;
combined
:
{
totalProducts
:
number
;
totalStock
:
any
;
totalLots
:
any
;
totalLabels
:
any
;
}
;
}
;
filters
:
{
search
:
string
;
category
:
string
;
warehouseId
:
string
|
null
;
hasStock
:
boolean
;
limit
:
number
;
}
;
}
,
>
|
NextResponse
<
{
success
:
boolean
;
error
:
string
;
details
:
string
}
>
,
>
GET /api/tablet/labels
Récupérer toutes les étiquettes avec leurs lots de stock et produits associés
Matières premières (rawMaterials)
Produits finis (finishedProducts)
Triées par FIFO (plus ancien en premier)
Compatible avec l'interface tablette
Parameters
request
:
NextRequest
Returns
Promise
<
|
NextResponse
<
{
success
:
boolean
;
rawMaterials
:
any
[]
;
finishedProducts
:
any
[]
;
stats
:
{
rawMaterials
:
{
total
:
number
;
totalStock
:
any
;
totalLots
:
any
;
totalLabels
:
any
;
}
;
finishedProducts
:
{
total
:
number
;
totalStock
:
any
;
totalLots
:
any
;
totalLabels
:
any
;
}
;
combined
:
{
totalProducts
:
number
;
totalStock
:
any
;
totalLots
:
any
;
totalLabels
:
any
;
}
;
}
;
filters
:
{
search
:
string
;
category
:
string
;
warehouseId
:
string
|
null
;
hasStock
:
boolean
;
limit
:
number
;
}
;
}
,
>
|
NextResponse
<
{
success
:
boolean
;
error
:
string
;
details
:
string
}
>
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...
GET /api/tablet/labels
Récupérer toutes les étiquettes avec leurs lots de stock et produits associés