Rev 151 | Rev 164 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 151 | Rev 162 | ||
|---|---|---|---|
| Line 731... | Line 731... | ||
| 731 | }
|
731 | }
|
| 732 | }
|
732 | }
|
| 733 | 733 | ||
| 734 | private void acrescentarValorIPISeHouver(Lancamento lancamento) { |
734 | private void acrescentarValorIPISeHouver(Lancamento lancamento) { |
| 735 | if (VerificadorUtil.naoEstaNulo(lancamento.getProduto())) { |
735 | if (VerificadorUtil.naoEstaNulo(lancamento.getProduto())) { |
| 736 | if (VerificadorUtil.naoEstaNulo(lancamento.getProduto().getAliquotaIPI())) { |
- | |
| 737 | lancamento.setValorCompra(lancamento.getValorCompra() + lancamento.getProduto().calculoIPI()); |
- | |
| 738 | } else { |
- | |
| 739 | lancamento.setValorCompra(lancamento.getValorCompra()); |
- | |
| 740 | }
|
- | |
| - | 736 | lancamento.setValorCompra(lancamento.getProduto().calculoOperacao()); |
|
| 741 | }
|
737 | }
|
| 742 | }
|
738 | }
|
| 743 | 739 | ||
| 744 | private void cadastrarPagamentos(ParametrosVendaDTO parametrosVenda, Venda venda) { |
740 | private void cadastrarPagamentos(ParametrosVendaDTO parametrosVenda, Venda venda) { |
| 745 | for (VendaFormaPagamento vendaFormaPagamento : parametrosVenda.getLancamentosPagamentos()) { |
741 | for (VendaFormaPagamento vendaFormaPagamento : parametrosVenda.getLancamentosPagamentos()) { |