mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 13:05:44 +00:00
changes export flow
This commit is contained in:
@@ -325,6 +325,21 @@ export class CreateBookingDto {
|
||||
@Transform(({ value }) => Number(value))
|
||||
cargoTotalWeightVgm!: number;
|
||||
|
||||
/**
|
||||
* Break-bulk only: actual total cargo weight in tons when the bulk cargo
|
||||
* type is PER_ITEM — `cargoTotalWeightVgm` then carries the item count.
|
||||
* Omit for PER_TON bulk and container freight.
|
||||
*/
|
||||
@ApiPropertyOptional({
|
||||
minimum: 0,
|
||||
description: 'Break-bulk (PER_ITEM) total weight in tons; cargoTotalWeightVgm holds the item count',
|
||||
})
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
@Transform(({ value }) => (value == null ? undefined : Number(value)))
|
||||
bulkTotalWeightTons?: number;
|
||||
|
||||
@ApiPropertyOptional({ default: false })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
IsInt,
|
||||
IsOptional,
|
||||
IsString,
|
||||
IsUUID,
|
||||
Max,
|
||||
Min,
|
||||
MinLength,
|
||||
@@ -93,6 +94,17 @@ export class RequestOperationDto {
|
||||
})
|
||||
@IsDateString()
|
||||
scheduledDate!: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
'EXPORT rail only: the specific train (schedule id) the customer picked ' +
|
||||
'from GET /bookings/:id/export-trains. The reserve path locks onto this ' +
|
||||
'train instead of earliest-first; 409 if it no longer fits. Ignored for ' +
|
||||
'import/domestic/road bookings.',
|
||||
})
|
||||
@IsOptional()
|
||||
@IsUUID()
|
||||
trainScheduleId?: string;
|
||||
}
|
||||
|
||||
export class OperationReviewDto {
|
||||
|
||||
Reference in New Issue
Block a user