From 4cf5ad14d0c5b54d9fc3e2b267b85f41992256be Mon Sep 17 00:00:00 2001 From: erleibiazzio Date: Mon, 27 Jun 2022 09:21:45 -0300 Subject: [PATCH] Configura plugin GenericValidator e faz mapeamento no ambiente de desenvolvimento ref.:1 --- compose/common/config.d/plugins.php | 14 ++++++++++++++ dev-scripts/docker-compose.local.yml | 2 ++ 2 files changed, 16 insertions(+) diff --git a/compose/common/config.d/plugins.php b/compose/common/config.d/plugins.php index 61039ea..9ea42c5 100644 --- a/compose/common/config.d/plugins.php +++ b/compose/common/config.d/plugins.php @@ -483,5 +483,19 @@ }, ] ], + "ValidadorHomodador" => [ + "namespace" => "GenericValidator", + "config" => [ + "homologation_required_for_export" => false, + "homologation_required" => false, + "enabled_alter_status_on_import" => true, + "name" => "validador homologador", + 'slug' => "validadorhomologador", + 'is_opportunity_managed_handler' => function ($opportunity) { + $opportunityList = ['820', '821', '822', '823', '825', '826', '827', '840', '841', '842', '843']; + return in_array($opportunity->id, $opportunityList) ? true : false; + }, + ] + ], ] ]; diff --git a/dev-scripts/docker-compose.local.yml b/dev-scripts/docker-compose.local.yml index 974603e..f8ae1ad 100644 --- a/dev-scripts/docker-compose.local.yml +++ b/dev-scripts/docker-compose.local.yml @@ -25,6 +25,8 @@ services: - ../plugins/AbstractValidator:/var/www/html/protected/application/plugins/AbstractValidator - ../plugins/AldirBlancValidador:/var/www/html/protected/application/plugins/AldirBlancValidador - ../plugins/FormCommunication:/var/www/html/protected/application/plugins/FormCommunication + - ../plugins/GenericValidator:/var/www/html/protected/application/plugins/GenericValidator + - ../compose/overrides/plugins/AldirBlancDataprev/Plugin.php:/var/www/html/protected/application/plugins/AldirBlancDataprev/Plugin.php - ../compose/overrides/plugins/AldirBlancDataprev/config-csv-inciso1.php:/var/www/html/protected/application/plugins/AldirBlancDataprev/config-csv-inciso1.php