Files
edr-platform/apps/edr-freight-api/src/modules/wagons/dto/close-short-transfer-request.dto.ts
Marshal 9b13fa2ac6 feat: implement wagon transfer management modals and page
- Add TransferFulfillModal for fulfilling wagon transfer requests.
- Create TransferRequestFormModal for filing new wagon transfer requests.
- Introduce TransferCloseShortModal for closing requests that cannot be fully fulfilled.
- Develop WagonTransfersPage to manage and display wagon transfer requests.
- Implement utility functions for handling wagon transfer request data and UI components.
- Enhance UI with Mantine components for better user experience.
2026-07-26 15:11:50 +00:00

18 lines
530 B
TypeScript

import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsOptional, IsString, MaxLength } from 'class-validator';
/**
* OCC ends a transfer request with fewer wagons than asked for. The note is
* carried into the requester's notification — it is what tells them WHY the
* yard could not give the rest.
*/
export class CloseShortTransferRequestDto {
@ApiPropertyOptional({
description: 'Why the source yard cannot supply the remainder',
})
@IsOptional()
@IsString()
@MaxLength(2000)
note?: string;
}