import { ApiProperty, PartialType } from '@nestjs/swagger' import { IsNumber, IsOptional, IsString } from 'class-validator' export class CreateSalesInvoiceDto { @IsString() @ApiProperty() code: string @IsNumber() @ApiProperty() total_amount: number @IsOptional() @IsString() @ApiProperty({ required: false }) description?: string @IsOptional() @IsString() @ApiProperty({ required: false }) customer_id?: string } export class UpdateSalesInvoiceDto extends PartialType(CreateSalesInvoiceDto) {}