Commit 885b739c16b53942b3ff94ac54c5f93e1afd669a
1 parent
76858fa3
Exists in
master
and in
21 other branches
AJustes US042: refs #8517
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
rn/ExpedirProcedimentoRN.php
... | ... | @@ -1583,7 +1583,13 @@ class ExpedirProcedimentoRN extends InfraRN { |
1583 | 1583 | if (!empty($objDocumentoDTO->getNumIdHipoteseLegalProtocolo()) |
1584 | 1584 | && empty($objPenRelHipoteseLegalEnvioRN->getIdHipoteseLegalPEN($objDocumentoDTO->getNumIdHipoteseLegalProtocolo()))) { |
1585 | 1585 | |
1586 | - $objInfraException->adicionarValidacao('Hipótese Legal do Documento Não Mapeada', $strAtributoValidacao); | |
1586 | + $objHipoteseLegalDTO = new HipoteseLegalDTO(); | |
1587 | + $objHipoteseLegalDTO->setNumIdHipoteseLegal($objDocumentoDTO->getNumIdHipoteseLegalProtocolo()); | |
1588 | + $objHipoteseLegalDTO->retStrNome(); | |
1589 | + $objHipoteseLegalRN = new HipoteseLegalRN(); | |
1590 | + $dados = $objHipoteseLegalRN->consultar($objHipoteseLegalDTO); | |
1591 | + | |
1592 | + $objInfraException->adicionarValidacao('Hipótese Legal "'.$dados->getStrNome().'" do Documento Não foi Mapeada', $strAtributoValidacao); | |
1587 | 1593 | } |
1588 | 1594 | } |
1589 | 1595 | } | ... | ... |