Commit 939a383edcc617e4c3b8a6bb1c1cba8369b5eb8b
Exists in
master
and in
1 other branch
Merge branch 'Correcao_112_Pet' into 'master'
Correcao 112 pet Correções: Quando o processo estava 100% concluído, decidia a Unidade para Reabertura do processo com base em Andamentos equivocados. See merge request !10
Showing
2 changed files
with
10 additions
and
1 deletions
Show diff stats
sei/web/modulos/peticionamento/PeticionamentoIntegracao.php
sei/web/modulos/peticionamento/rn/MdPetIntercorrenteReaberturaRN.php
... | ... | @@ -118,8 +118,17 @@ class MdPetIntercorrenteReaberturaRN extends InfraRN { |
118 | 118 | $objAtividadeDTO->retDthConclusao(); |
119 | 119 | $objAtividadeDTO->retNumIdUnidade(); |
120 | 120 | $objAtividadeDTO->setOrdDthConclusao(InfraDTO::$TIPO_ORDENACAO_DESC); |
121 | + | |
122 | + // apenas considerar para reaburtura SE a tarefa do andamento for 28, 41 ou 63 a saber: | |
123 | + //- 28: Conclusao do processo na unidade | |
124 | + //- 41: Conclusao automtica de processo na unidade | |
125 | + //- 63: Processo concluido | |
126 | + | |
127 | + $objAtividadeDTO->setNumIdTarefa( array( TarefaRN::$TI_CONCLUSAO_PROCESSO_UNIDADE , TarefaRN::$TI_CONCLUSAO_AUTOMATICA_UNIDADE, TarefaRN::$TI_CONCLUSAO_PROCESSO_USUARIO), InfraDTO::$OPER_IN ); | |
128 | + | |
121 | 129 | $arrObjAtividadeDTO = $objAtividadeRN->listarRN0036($objAtividadeDTO); |
122 | 130 | $objUltimaAtvProcesso = count($arrObjAtividadeDTO) > 0 ? current($arrObjAtividadeDTO) : null; |
131 | + | |
123 | 132 | if(!is_null($objUltimaAtvProcesso)) { |
124 | 133 | $idUnidadeReabrirProcesso = $objUltimaAtvProcesso->getNumIdUnidade(); |
125 | 134 | } | ... | ... |