refactor: rename prestataire to constructeur

This commit is contained in:
Matthieu
2025-09-17 08:50:07 +02:00
parent 4d2d552391
commit e8aeaf98e9
36 changed files with 796 additions and 783 deletions

View File

@@ -133,7 +133,7 @@ export class MachinesService {
data: {
name: component.name,
reference: component.reference || '',
prestataire: component.prestataire || '',
constructeur: component.constructeur || '',
emplacement: component.emplacement || '',
prix: component.prix || null,
machineId,
@@ -202,7 +202,7 @@ export class MachinesService {
data: {
name: piece.name,
reference: piece.reference || '',
prestataire: piece.prestataire || '',
constructeur: piece.constructeur || '',
emplacement: piece.emplacement || '',
prix: piece.prix || null,
composantId: createdComposant.id,

View File

@@ -19,7 +19,7 @@ export class CreateComposantDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@Transform(({ value }) => value === '' ? null : value)
@@ -46,7 +46,7 @@ export class UpdateComposantDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@Transform(({ value }) => value === '' ? null : value)
@@ -60,4 +60,4 @@ export class UpdateComposantDto {
@IsOptional()
@IsString()
typeComposantId?: string;
}
}

View File

@@ -13,7 +13,7 @@ export class CreateMachineDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@IsDecimal()
@@ -39,7 +39,7 @@ export class UpdateMachineDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@IsDecimal()
@@ -52,4 +52,4 @@ export class UpdateMachineDto {
@IsOptional()
@IsString()
typeMachineId?: string;
}
}

View File

@@ -19,7 +19,7 @@ export class CreatePieceDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@Transform(({ value }) => value === '' ? null : value)
@@ -46,7 +46,7 @@ export class UpdatePieceDto {
@IsOptional()
@IsString()
prestataire?: string;
constructeur?: string;
@IsOptional()
@Transform(({ value }) => value === '' ? null : value)
@@ -60,4 +60,4 @@ export class UpdatePieceDto {
@IsOptional()
@IsString()
typePieceId?: string;
}
}