From 885b739c16b53942b3ff94ac54c5f93e1afd669a Mon Sep 17 00:00:00 2001 From: Thiago Farias Date: Tue, 14 Nov 2017 15:06:55 -0200 Subject: [PATCH] AJustes US042: refs #8517 --- rn/ExpedirProcedimentoRN.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rn/ExpedirProcedimentoRN.php b/rn/ExpedirProcedimentoRN.php index 131e21c..27d2f67 100644 --- a/rn/ExpedirProcedimentoRN.php +++ b/rn/ExpedirProcedimentoRN.php @@ -1583,7 +1583,13 @@ class ExpedirProcedimentoRN extends InfraRN { if (!empty($objDocumentoDTO->getNumIdHipoteseLegalProtocolo()) && empty($objPenRelHipoteseLegalEnvioRN->getIdHipoteseLegalPEN($objDocumentoDTO->getNumIdHipoteseLegalProtocolo()))) { - $objInfraException->adicionarValidacao('Hipótese Legal do Documento Não Mapeada', $strAtributoValidacao); + $objHipoteseLegalDTO = new HipoteseLegalDTO(); + $objHipoteseLegalDTO->setNumIdHipoteseLegal($objDocumentoDTO->getNumIdHipoteseLegalProtocolo()); + $objHipoteseLegalDTO->retStrNome(); + $objHipoteseLegalRN = new HipoteseLegalRN(); + $dados = $objHipoteseLegalRN->consultar($objHipoteseLegalDTO); + + $objInfraException->adicionarValidacao('Hipótese Legal "'.$dados->getStrNome().'" do Documento Não foi Mapeada', $strAtributoValidacao); } } } -- libgit2 0.21.2