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
@@ -18,7 +18,7 @@ class PeticionamentoIntegracao extends SeiIntegracao { | @@ -18,7 +18,7 @@ class PeticionamentoIntegracao extends SeiIntegracao { | ||
18 | } | 18 | } |
19 | 19 | ||
20 | public function getVersao() { | 20 | public function getVersao() { |
21 | - return '1.1.0'; | 21 | + return '1.1.2'; |
22 | } | 22 | } |
23 | 23 | ||
24 | public function getInstituicao(){ | 24 | public function getInstituicao(){ |
sei/web/modulos/peticionamento/rn/MdPetIntercorrenteReaberturaRN.php
@@ -118,8 +118,17 @@ class MdPetIntercorrenteReaberturaRN extends InfraRN { | @@ -118,8 +118,17 @@ class MdPetIntercorrenteReaberturaRN extends InfraRN { | ||
118 | $objAtividadeDTO->retDthConclusao(); | 118 | $objAtividadeDTO->retDthConclusao(); |
119 | $objAtividadeDTO->retNumIdUnidade(); | 119 | $objAtividadeDTO->retNumIdUnidade(); |
120 | $objAtividadeDTO->setOrdDthConclusao(InfraDTO::$TIPO_ORDENACAO_DESC); | 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 | $arrObjAtividadeDTO = $objAtividadeRN->listarRN0036($objAtividadeDTO); | 129 | $arrObjAtividadeDTO = $objAtividadeRN->listarRN0036($objAtividadeDTO); |
122 | $objUltimaAtvProcesso = count($arrObjAtividadeDTO) > 0 ? current($arrObjAtividadeDTO) : null; | 130 | $objUltimaAtvProcesso = count($arrObjAtividadeDTO) > 0 ? current($arrObjAtividadeDTO) : null; |
131 | + | ||
123 | if(!is_null($objUltimaAtvProcesso)) { | 132 | if(!is_null($objUltimaAtvProcesso)) { |
124 | $idUnidadeReabrirProcesso = $objUltimaAtvProcesso->getNumIdUnidade(); | 133 | $idUnidadeReabrirProcesso = $objUltimaAtvProcesso->getNumIdUnidade(); |
125 | } | 134 | } |