up
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
} from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { Type } from 'class-transformer';
|
||||
import { IAttachment } from 'src/modules/order/interface/order.interface';
|
||||
|
||||
export class CreateInvoiceItemDto {
|
||||
@IsString()
|
||||
@@ -65,4 +66,14 @@ export class CreateInvoiceDto {
|
||||
@IsDateString()
|
||||
@ApiPropertyOptional({ description: 'Approval deadline (ISO date string)' })
|
||||
approvalDeadline?: string;
|
||||
|
||||
|
||||
@ApiPropertyOptional()
|
||||
@IsString()
|
||||
paymentMethod?: string
|
||||
|
||||
// @IsArray()
|
||||
// @Type(() => IAttachment)
|
||||
// @ApiProperty({ type: [IAttachment] })
|
||||
// attachments: IAttachment[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user