fix wagon cncellation

This commit is contained in:
Marshal
2026-08-07 06:31:25 +00:00
parent 750dfc0720
commit 3db14bc09a
7 changed files with 501 additions and 19 deletions

View File

@@ -9,6 +9,7 @@ import {
IsNumber,
IsOptional,
IsString,
IsUUID,
MaxLength,
Min,
ValidateNested,
@@ -28,6 +29,18 @@ export class CancelContainerLineDto {
}
export class RequestWagonCancellationDto {
@ApiPropertyOptional({
description:
'Cancel SPECIFIC allocated wagons: wagon_booking_allocation ids from GET /bookings/:id/wagons. ' +
'When set, wagons/containers are derived from the selected wagons and the other fields are ignored.',
type: [String],
})
@IsOptional()
@IsArray()
@ArrayNotEmpty()
@IsUUID('4', { each: true })
wagonAllocationIds?: string[];
@ApiPropertyOptional({
description: 'BULK bookings: number of wagons to cancel (tons derived proportionally)',
})