Commit 325a888475239cc49afa89e4c053724a7ce7bda6
1 parent
3f789e51
Exists in
master
and in
1 other branch
[Fix] Corrigindo tipo de documento no bloco de assinatura.
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
rn/MdWsSeiBlocoRN.php
... | ... | @@ -116,11 +116,17 @@ class MdWsSeiBlocoRN extends InfraRN { |
116 | 116 | $arrResultAssinatura = array(); |
117 | 117 | $protocoloDTO = new ProtocoloDTO(); |
118 | 118 | $protocoloDTO->setDblIdProtocolo($relProtocoloProtocoloDTO->getDblIdProtocolo1()); |
119 | - $protocoloDTO->retStrNomeTipoProcedimentoProcedimento(); | |
119 | + $protocoloDTO->retStrNomeSerieDocumento(); | |
120 | 120 | $protocoloDTO->retStrProtocoloFormatado(); |
121 | 121 | $protocoloDTO->retDblIdProtocolo(); |
122 | 122 | $protocoloDTO->retDtaGeracao(); |
123 | 123 | $protocoloDTO = $protocoloRN->consultarRN0186($protocoloDTO); |
124 | + | |
125 | + $protocoloDTODocumento = new ProtocoloDTO(); | |
126 | + $protocoloDTODocumento->retStrNomeSerieDocumento(); | |
127 | + $protocoloDTODocumento->setDblIdProtocolo($relBlocoProtocoloDTO->getDblIdProtocolo()); | |
128 | + $protocoloDTODocumento = $protocoloRN->consultarRN0186($protocoloDTODocumento); | |
129 | + | |
124 | 130 | $assinaturaDTOConsulta = new AssinaturaDTO(); |
125 | 131 | $assinaturaDTOConsulta->setDblIdDocumento($relBlocoProtocoloDTO->getDblIdProtocolo()); |
126 | 132 | $assinaturaDTOConsulta->retStrNome(); |
... | ... | @@ -152,7 +158,7 @@ class MdWsSeiBlocoRN extends InfraRN { |
152 | 158 | 'data' => $protocoloDTO->getDtaGeracao(), |
153 | 159 | 'numero' => $relBlocoProtocoloDTO->getStrProtocoloFormatadoProtocolo(), |
154 | 160 | 'numeroProcesso' => $protocoloDTO->getStrProtocoloFormatado(), |
155 | - 'tipo' => $protocoloDTO->getStrNomeTipoProcedimentoProcedimento(), | |
161 | + 'tipo' => $protocoloDTODocumento->getStrNomeSerieDocumento(), | |
156 | 162 | 'assinaturas' => $arrResultAssinatura |
157 | 163 | ), |
158 | 164 | 'anotacao' => $relBlocoProtocoloDTO->getStrAnotacao() | ... | ... |