fix(f6.1): keep operator snapshot immutable on inventory updates
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Transform } from 'class-transformer';
|
||||
import {
|
||||
IsEmpty,
|
||||
IsObject,
|
||||
IsOptional,
|
||||
IsString,
|
||||
@@ -47,8 +48,12 @@ export class UpdateAssetDto {
|
||||
@IsUUID('4')
|
||||
operationalAreaId?: string | null;
|
||||
|
||||
/**
|
||||
* Snapshot histórico/de compatibilidad. La Operadora vigente pertenece a la
|
||||
* relación temporal Área↔Empresa y no puede editarse como propiedad física.
|
||||
*/
|
||||
@IsOptional()
|
||||
@IsUUID('4')
|
||||
@IsEmpty({ message: 'La Operadora se administra en la relación temporal del Área, no en el Inventario' })
|
||||
operatorCompanyId?: string | null;
|
||||
|
||||
@IsOptional()
|
||||
|
||||
Reference in New Issue
Block a user