refactor: tenant models to nestjs

This commit is contained in:
Ahmed Bouhuolia
2025-03-30 21:22:54 +02:00
parent 682be715ae
commit caff6ce47c
13 changed files with 92 additions and 70 deletions

View File

@@ -2,6 +2,7 @@ import { ItemEntryDto } from '@/modules/TransactionItemEntry/dto/ItemEntry.dto';
import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';
import {
ArrayMinSize,
IsArray,
IsBoolean,
IsDate,
@@ -12,7 +13,6 @@ import {
IsOptional,
IsString,
Min,
MinLength,
ValidateNested,
} from 'class-validator';
@@ -130,7 +130,7 @@ class CommandSaleInvoiceDto {
@IsArray()
@ValidateNested({ each: true })
@Type(() => ItemEntryDto)
@MinLength(1)
@ArrayMinSize(1)
@ApiProperty({
description: 'Invoice line items',
type: [ItemEntryDto],