Rev 403 | Rev 456 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 403 | Rev 407 | ||
|---|---|---|---|
| Line 212... | Line 212... | ||
| 212 | descricao.append(dadosSeparados[3]); |
212 | descricao.append(dadosSeparados[3]); |
| 213 | extratoBancoDTO.setDescricao(descricao.toString().replace("(- : -)", "").replace(" : -)", ")")); |
213 | extratoBancoDTO.setDescricao(descricao.toString().replace("(- : -)", "").replace(" : -)", ")")); |
| 214 | Double valor = 0.0; |
214 | Double valor = 0.0; |
| 215 | if (VerificadorUtil.naoEstaNuloOuVazio(dadosSeparados[5])) { |
215 | if (VerificadorUtil.naoEstaNuloOuVazio(dadosSeparados[5])) { |
| 216 | valor = new Double(dadosSeparados[5].replace(".", "").replace(",", ".") ); |
216 | valor = new Double(dadosSeparados[5].replace(".", "").replace(",", ".") ); |
| - | 217 | }
|
|
| - | 218 | if (valor < 0.0) { |
|
| - | 219 | valor = valor * -1; |
|
| 217 | }
|
220 | }
|
| 218 | extratoBancoDTO.setValorTotal(valor); |
221 | extratoBancoDTO.setValorTotal(valor); |
| 219 | extratoBancoDTO.setTipoExtratoBanco(TipoExtratoBanco.SEM_CATEGORIA.getValor()); |
222 | extratoBancoDTO.setTipoExtratoBanco(TipoExtratoBanco.SEM_CATEGORIA.getValor()); |
| 220 | if (extratoBancoDTO.getDescricao().contains("PIX") && |
223 | if (extratoBancoDTO.getDescricao().contains("PIX") && |
| 221 | extratoBancoDTO.getDescricao().contains("21.494.821")) { |
224 | extratoBancoDTO.getDescricao().contains("21.494.821")) { |
| 222 | extratoBancoDTO.setValorTotal(valor * -1); |
- | |
| - | 225 | extratoBancoDTO.setValorTotal(valor); |
|
| 223 | extratoBancoDTO.setTipoExtratoBanco(TipoExtratoBanco.TRANSFERENCIAS_ENTRE_CONTAS.getValor()); |
226 | extratoBancoDTO.setTipoExtratoBanco(TipoExtratoBanco.TRANSFERENCIAS_ENTRE_CONTAS.getValor()); |
| 224 | } else if (extratoBancoDTO.getDescricao().contains("PIX")) { |
227 | } else if (extratoBancoDTO.getDescricao().contains("PIX")) { |
| 225 | extratoBancoDTO.setTipoExtratoBanco(TipoExtratoBanco.TRANSFERENCIAS.getValor()); |
228 | extratoBancoDTO.setTipoExtratoBanco(TipoExtratoBanco.TRANSFERENCIAS.getValor()); |
| 226 | } else if (!extratoBancoDTO.getDescricao().contains("SALDO PARCIAL")) { |
229 | } else if (!extratoBancoDTO.getDescricao().contains("SALDO PARCIAL")) { |
| 227 | if (VerificadorUtil.naoEstaNulo(valor)) { |
230 | if (VerificadorUtil.naoEstaNulo(valor)) { |
| 228 | extratoBancoDTO.setValorTotal(valor * -1); |
- | |
| - | 231 | extratoBancoDTO.setValorTotal(valor); |
|
| 229 | extratoBancoDTO.setTipoExtratoBanco(TipoExtratoBanco.PAGAMENTO.getValor()); |
232 | extratoBancoDTO.setTipoExtratoBanco(TipoExtratoBanco.PAGAMENTO.getValor()); |
| 230 | }
|
233 | }
|
| 231 | }
|
234 | }
|
| 232 | if (!extratoBancoDTO.getTipoExtratoBanco().equals(TipoExtratoBanco.SEM_CATEGORIA.getValor())) { |
235 | if (!extratoBancoDTO.getTipoExtratoBanco().equals(TipoExtratoBanco.SEM_CATEGORIA.getValor())) { |
| 233 | extratoBancoDTO.setIndicadorCadastrar(true); |
236 | extratoBancoDTO.setIndicadorCadastrar(true); |