Commit d2ba572a11c8238e279678bb0d64caa002b71e96
1 parent
e17aa178
Exists in
master
and in
19 other branches
[Fixed #83] Correção de travamento de progresso no envio externo do processo
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
rn/ExpedirProcedimentoRN.php
... | ... | @@ -1247,6 +1247,11 @@ class ExpedirProcedimentoRN extends InfraRN { |
1247 | 1247 | private function atribuirNumeracaoDocumento($objDocumento, DocumentoDTO $parObjDocumentoDTO) |
1248 | 1248 | { |
1249 | 1249 | $objSerieDTO = $this->consultarSerie($parObjDocumentoDTO->getNumIdSerie()); |
1250 | + | |
1251 | + if(!isset($objSerieDTO)){ | |
1252 | + throw new InfraException("Tipo de Documento não pode ser localizado. (Código: ".$parObjDocumentoDTO->getNumIdSerie().")"); | |
1253 | + } | |
1254 | + | |
1250 | 1255 | $strStaNumeracao = $objSerieDTO->getStrStaNumeracao(); |
1251 | 1256 | |
1252 | 1257 | if($strStaNumeracao == SerieRN::$TN_SEQUENCIAL_UNIDADE) { |
... | ... | @@ -1294,6 +1299,7 @@ class ExpedirProcedimentoRN extends InfraRN { |
1294 | 1299 | |
1295 | 1300 | $objUnidadeDTO = new UnidadeDTO(); |
1296 | 1301 | $objUnidadeDTO->setNumIdUnidade($numIdUnidade); |
1302 | + $objUnidadeDTO->setBolExclusaoLogica(false); | |
1297 | 1303 | $objUnidadeDTO->retStrDescricao(); |
1298 | 1304 | |
1299 | 1305 | return $this->objUnidadeRN->consultarRN0125($objUnidadeDTO); |
... | ... | @@ -1307,6 +1313,7 @@ class ExpedirProcedimentoRN extends InfraRN { |
1307 | 1313 | |
1308 | 1314 | $objSerieDTO = new SerieDTO(); |
1309 | 1315 | $objSerieDTO->setNumIdSerie($numIdSerie); |
1316 | + $objSerieDTO->setBolExclusaoLogica(false); | |
1310 | 1317 | $objSerieDTO->retStrStaNumeracao(); |
1311 | 1318 | |
1312 | 1319 | return $this->objSerieRN->consultarRN0644($objSerieDTO); |
... | ... | @@ -1318,6 +1325,7 @@ class ExpedirProcedimentoRN extends InfraRN { |
1318 | 1325 | $objOrgaoDTO->setNumIdOrgao($numIdOrgao); |
1319 | 1326 | $objOrgaoDTO->retStrSigla(); |
1320 | 1327 | $objOrgaoDTO->retStrDescricao(); |
1328 | + $objOrgaoDTO->setBolExclusaoLogica(false); | |
1321 | 1329 | |
1322 | 1330 | return $this->objOrgaoRN->consultarRN1352($objOrgaoDTO); |
1323 | 1331 | } | ... | ... |