From a013527f57cb6bc2fac3cbdd98baabf39e6f6d5d Mon Sep 17 00:00:00 2001 From: jmbardallo Date: Mon, 11 May 2026 10:29:47 +0200 Subject: [PATCH] Al importar clientes se inicializan con estado off --- CHANGELOG.md | 4 ++++ src/Command/Migration/MigrateClientsCommand.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 770cc4c..c9067e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.7.8] - 2026-05-11 +### Fixed +- En la importación de clientes, se inicializan con estado "off" + ## [1.7.7] - 2026-05-08 ### Added - Mejorado comando ImportLegacy y creada ruta api para invocarlo desde la consola web, controla errores e informa de cambios a través de mercure diff --git a/src/Command/Migration/MigrateClientsCommand.php b/src/Command/Migration/MigrateClientsCommand.php index b1ee1fa..eb6f61e 100644 --- a/src/Command/Migration/MigrateClientsCommand.php +++ b/src/Command/Migration/MigrateClientsCommand.php @@ -3,6 +3,7 @@ namespace App\Command\Migration; use App\Entity\Client; +use App\Model\ClientStatus; use App\Entity\HardwareProfile; use App\Entity\OrganizationalUnit; use App\Model\OrganizationalUnitTypes; @@ -68,6 +69,7 @@ class MigrateClientsCommand extends Command } $clientEntity = new Client(); + $clientEntity->setStatus(ClientStatus::OFF); $clientEntity->setMigrationId($client['idordenador']); $clientEntity->setName($client['nombreordenador']); $clientEntity->setSerialNumber($client['numserie']);