Rev 480 | Rev 489 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 480 | Rev 485 | ||
|---|---|---|---|
| Line 513... | Line 513... | ||
| 513 | @Transient |
513 | @Transient |
| 514 | public Double getTotalValorProdutosVinculados() { |
514 | public Double getTotalValorProdutosVinculados() { |
| 515 | Double total = new Double(0.0); |
515 | Double total = new Double(0.0); |
| 516 | if (VerificadorUtil.naoEstaNuloOuVazio(getListaProdutosVinculadosDTO())) { |
516 | if (VerificadorUtil.naoEstaNuloOuVazio(getListaProdutosVinculadosDTO())) { |
| 517 | for (NotaFiscalProdutoDTO notaFiscalProdutoDTO : getListaProdutosVinculadosDTO()) { |
517 | for (NotaFiscalProdutoDTO notaFiscalProdutoDTO : getListaProdutosVinculadosDTO()) { |
| 518 | total = total + notaFiscalProdutoDTO.getCompraProdutoDTO().getValorCompra() * notaFiscalProdutoDTO.getQuantidade(); |
- | |
| - | 518 | total = total + (notaFiscalProdutoDTO.getValor() * notaFiscalProdutoDTO.getQuantidade()); |
|
| 519 | }
|
519 | }
|
| 520 | }
|
520 | }
|
| 521 | return total; |
521 | return total; |
| 522 | }
|
522 | }
|
| 523 | 523 | ||