2026-02-12 20:31:04 +03:30
|
|
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
|
|
|
|
import { IsNumber, IsOptional, IsString } from 'class-validator'
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
export class CreateSalesInvoiceDto {
|
|
|
|
|
@IsString()
|
2026-02-12 20:31:04 +03:30
|
|
|
@ApiProperty()
|
2025-12-09 13:59:07 +03:30
|
|
|
code: string
|
|
|
|
|
|
|
|
|
|
@IsNumber()
|
2026-02-12 20:31:04 +03:30
|
|
|
@ApiProperty()
|
|
|
|
|
total_amount: number
|
2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
@IsOptional()
|
|
|
|
|
@IsString()
|
2026-02-12 20:31:04 +03:30
|
|
|
@ApiProperty({ required: false })
|
2025-12-09 13:59:07 +03:30
|
|
|
description?: string
|
|
|
|
|
|
|
|
|
|
@IsOptional()
|
2026-02-12 20:31:04 +03:30
|
|
|
@IsString()
|
|
|
|
|
@ApiProperty({ required: false })
|
|
|
|
|
customer_id?: string
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
2026-02-12 20:31:04 +03:30
|
|
|
|
|
|
|
|
export class UpdateSalesInvoiceDto extends PartialType(CreateSalesInvoiceDto) {}
|