Files
psp_api/src/inventory-transfers/dto/create-inventory-transfer.dto.ts
T

20 lines
349 B
TypeScript
Raw Normal View History

import { Type } from 'class-transformer'
import { IsInt, IsOptional, IsString } from 'class-validator'
export class CreateInventoryTransferDto {
@IsString()
code: string
@IsOptional()
@IsString()
description?: string
@Type(() => Number)
@IsInt()
fromInventoryId: number
@Type(() => Number)
@IsInt()
toInventoryId: number
}