refactor: rename prestataire to constructeur
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user