add tax to order

This commit is contained in:
2026-01-24 11:08:54 +03:30
parent e53c574931
commit 49390ce62e
5 changed files with 43 additions and 13 deletions
+5 -1
View File
@@ -1,7 +1,8 @@
import {
IsInt, IsArray, IsNumber,
IsNotEmpty,
ArrayMinSize
ArrayMinSize,
IsBoolean
} from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';
@@ -36,6 +37,9 @@ export class CreateInvoiceDto {
@Type(() => InvoiceItemDto)
items: InvoiceItemDto[];
@ApiProperty()
@IsBoolean()
enableTax: boolean
}