mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 21:08:12 +00:00
- 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.
18 lines
530 B
TypeScript
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;
|
|
}
|