Rev 681 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 681 | Rev 693 | ||
|---|---|---|---|
| Line 318... | Line 318... | ||
| 318 | taxa = taxaService.consultarTaxa(taxa); |
318 | taxa = taxaService.consultarTaxa(taxa); |
| 319 | }
|
319 | }
|
| 320 | if (VerificadorUtil.estaNulo(taxa)) { |
320 | if (VerificadorUtil.estaNulo(taxa)) { |
| 321 | taxa = new Taxa(); |
321 | taxa = new Taxa(); |
| 322 | taxa.setContaBancaria(new ContaBancaria(new Long(1))); |
322 | taxa.setContaBancaria(new ContaBancaria(new Long(1))); |
| - | 323 | }
|
|
| - | 324 | if (VerificadorUtil.estaNulo(taxa)) { |
|
| - | 325 | throw new NegocioException("TAXA NÃO LOCALIZADA: " + vendaFormaPagamento.getEmpresaAdquirenteDaMaquinetaDaVenda().getDescricao() + |
|
| - | 326 | ": " + vendaFormaPagamento.getBandeiraCartao().getDescricao() + ", " + vendaFormaPagamento.getFormaPagamento().getDescricao()); |
|
| 323 | }
|
327 | }
|
| 324 | return taxa; |
328 | return taxa; |
| 325 | } catch (Exception e) { |
329 | } catch (Exception e) { |
| 326 | throw new NegocioException(e.getMessage()); |
330 | throw new NegocioException(e.getMessage()); |
| 327 | }
|
331 | }
|