20 lines
349 B
TypeScript
20 lines
349 B
TypeScript
|
|
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
|
||
|
|
}
|