mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 17:10:56 +00:00
- WarehouseLoading entity + Batch3 migration (wagon loading records) - wagon-aware load() with validation; dispatch moved to PATCH - read-only SchedulingReadFacade (schedule/wagon/departure) — never writes scheduling - new endpoints: GET /warehouse-loadings, loadable-wagons, booking schedule - Loading Queue / Loaded Inventory / Dispatch Queue pages + routes + sidebar - FreightVisual illustrations (page heroes + empty states) - booking detail: loaded/dispatched/wagon + read-only train schedule Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
18 lines
644 B
TypeScript
18 lines
644 B
TypeScript
import { Controller, Get, Query } from '@nestjs/common';
|
|
import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger';
|
|
|
|
import { WarehouseInventoryService } from './warehouse-inventory.service';
|
|
|
|
@ApiTags('warehouse-loadings')
|
|
@ApiBearerAuth()
|
|
@Controller('warehouse-loadings')
|
|
export class WarehouseLoadingsController {
|
|
constructor(private readonly inventoryService: WarehouseInventoryService) {}
|
|
|
|
@Get()
|
|
@ApiOperation({ summary: 'List wagon loading records' })
|
|
findAll(@Query('bookingId') bookingId?: string, @Query('wagonId') wagonId?: string) {
|
|
return this.inventoryService.findLoadings({ bookingId, wagonId });
|
|
}
|
|
}
|