ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
hooks/use-stock-movements-with-racks
useStockMovementsWithRacks
Function useStockMovementsWithRacks
useStockMovementsWithRacks
(
props
:
UseStockMovementsWithRacksProps
,
)
:
{
movements
:
StockMovement
[]
;
movementsStats
:
|
{
totalMovements
:
number
;
totalQuantity
:
number
;
movementsByType
:
{
type
:
string
;
_count
:
{
id
:
number
}
;
_sum
:
{
quantity
:
number
}
;
}
[]
;
}
|
undefined
;
movementsPagination
:
|
{
page
:
number
;
limit
:
number
;
total
:
number
;
pages
:
number
;
}
|
undefined
;
movementsLoading
:
boolean
;
movementsError
:
Error
|
null
;
refetchMovements
:
(
options
?:
RefetchOptions
,
)
=>
Promise
<
QueryObserverResult
<
StockMovementsResponse
,
Error
>
>
;
rackLocations
:
RackLocation
[]
;
rackStats
:
|
{
total
:
number
;
empty
:
number
;
occupied
:
number
;
unavailable
:
number
;
maintenance
:
number
;
totalStockValue
:
number
;
}
|
undefined
;
rackLoading
:
boolean
;
rackError
:
Error
|
null
;
refetchRacks
:
(
options
?:
RefetchOptions
,
)
=>
Promise
<
QueryObserverResult
<
RackData
,
Error
>
>
;
selectedLocation
:
RackLocation
|
null
;
showRackVisualization
:
boolean
;
handleLocationSelect
:
(
location
:
RackLocation
)
=>
void
;
clearLocationSelection
:
()
=>
void
;
toggleRackVisualization
:
()
=>
void
;
}
Parameters
props
:
UseStockMovementsWithRacksProps
Returns
{
movements
:
StockMovement
[]
;
movementsStats
:
|
{
totalMovements
:
number
;
totalQuantity
:
number
;
movementsByType
:
{
type
:
string
;
_count
:
{
id
:
number
}
;
_sum
:
{
quantity
:
number
}
;
}
[]
;
}
|
undefined
;
movementsPagination
:
|
{
page
:
number
;
limit
:
number
;
total
:
number
;
pages
:
number
;
}
|
undefined
;
movementsLoading
:
boolean
;
movementsError
:
Error
|
null
;
refetchMovements
:
(
options
?:
RefetchOptions
,
)
=>
Promise
<
QueryObserverResult
<
StockMovementsResponse
,
Error
>
>
;
rackLocations
:
RackLocation
[]
;
rackStats
:
|
{
total
:
number
;
empty
:
number
;
occupied
:
number
;
unavailable
:
number
;
maintenance
:
number
;
totalStockValue
:
number
;
}
|
undefined
;
rackLoading
:
boolean
;
rackError
:
Error
|
null
;
refetchRacks
:
(
options
?:
RefetchOptions
,
)
=>
Promise
<
QueryObserverResult
<
RackData
,
Error
>
>
;
selectedLocation
:
RackLocation
|
null
;
showRackVisualization
:
boolean
;
handleLocationSelect
:
(
location
:
RackLocation
)
=>
void
;
clearLocationSelection
:
()
=>
void
;
toggleRackVisualization
:
()
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...