mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 00:45:41 +00:00
warehouse
This commit is contained in:
@@ -43,6 +43,24 @@ export class WarehouseInventoryController {
|
||||
return this.inventoryService.move(id, dto);
|
||||
}
|
||||
|
||||
@Get('dashboard/summary')
|
||||
@ApiOperation({ summary: 'Warehouse dashboard summary' })
|
||||
dashboardSummary(@Query() filter: FilterWarehouseInventoryDto) {
|
||||
return this.inventoryService.dashboardSummary(filter);
|
||||
}
|
||||
|
||||
@Post(':id/store')
|
||||
@ApiOperation({ summary: 'Store received inventory' })
|
||||
store(@Param('id', ParseUUIDPipe) id: string) {
|
||||
return this.inventoryService.store(id);
|
||||
}
|
||||
|
||||
@Post(':id/reserve')
|
||||
@ApiOperation({ summary: 'Reserve stored inventory against a paid booking' })
|
||||
reserve(@Param('id', ParseUUIDPipe) id: string, @Body() dto: { bookingId?: string }) {
|
||||
return this.inventoryService.reserve(id, dto);
|
||||
}
|
||||
|
||||
@Patch(':id/inspect')
|
||||
@ApiOperation({ summary: 'Move inventory to UNDER_INSPECTION' })
|
||||
inspect(@Param('id', ParseUUIDPipe) id: string) {
|
||||
@@ -54,4 +72,16 @@ export class WarehouseInventoryController {
|
||||
readyForLoading(@Param('id', ParseUUIDPipe) id: string) {
|
||||
return this.inventoryService.readyForLoading(id);
|
||||
}
|
||||
|
||||
@Post(':id/load')
|
||||
@ApiOperation({ summary: 'Mark ready inventory as loaded' })
|
||||
load(@Param('id', ParseUUIDPipe) id: string) {
|
||||
return this.inventoryService.load(id);
|
||||
}
|
||||
|
||||
@Post(':id/dispatch')
|
||||
@ApiOperation({ summary: 'Dispatch loaded inventory' })
|
||||
dispatch(@Param('id', ParseUUIDPipe) id: string) {
|
||||
return this.inventoryService.dispatch(id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user