Subversion Repositories Integrator Subversion

Rev

Rev 270 | Rev 317 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 270 Rev 309
Line 325... Line 325...
325
        private Double descontarTaxa(Double valorPagamento, Double taxa) {
325
        private Double descontarTaxa(Double valorPagamento, Double taxa) {
326
                return new Double (new DecimalFormat("#.##").format(valorPagamento - (valorPagamento * taxa / 100)).replace(",", "."));
326
                return new Double (new DecimalFormat("#.##").format(valorPagamento - (valorPagamento * taxa / 100)).replace(",", "."));
327
        }
327
        }
328
       
328
       
329
        private void cadastrarParcelas(VendaFormaPagamento vendaFormaPagamento, ContaBancaria contaBancaria, Date dataVencimento, Double valorPagamento, Conta conta, String observacao) {
329
        private void cadastrarParcelas(VendaFormaPagamento vendaFormaPagamento, ContaBancaria contaBancaria, Date dataVencimento, Double valorPagamento, Conta conta, String observacao) {
330
                Parcela parcela = new Parcela(conta, contaBancaria, vendaFormaPagamento.getVenda().getDataVenda(), dataVencimento, null, valorPagamento, observacao + " DA VENDA: " + vendaFormaPagamento.getVenda().getSequencial(), true);
-
 
-
 
330
                Parcela parcela = new Parcela(conta, contaBancaria, vendaFormaPagamento.getVenda().getDataVenda(), dataVencimento, null, valorPagamento, observacao + " DA VENDA: " + vendaFormaPagamento.getVenda().getSequencial(), vendaFormaPagamento.getFormaPagamento(), true);
331
                this.cadastrar(parcela);
331
                this.cadastrar(parcela);
332
        }
332
        }
333
       
333
       
334
        @Override
334
        @Override
335
        public Boolean verificarPossuiParcelaAberta(Venda venda) {
335
        public Boolean verificarPossuiParcelaAberta(Venda venda) {