Subversion Repositories Integrator Subversion

Rev

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

Rev 195 Rev 689
Line 380... Line 380...
380
        @Transient
380
        @Transient
381
        public Double getTotalPagoEmCupom() {
381
        public Double getTotalPagoEmCupom() {
382
                Double total = new Double(0.0);
382
                Double total = new Double(0.0);
383
                for (VendaFormaPagamento pagamento : getVendaFormaPagamentos()) {
383
                for (VendaFormaPagamento pagamento : getVendaFormaPagamentos()) {
384
                        if (pagamento.getFormaPagamento().formaPagamentoEhCupom()) {
384
                        if (pagamento.getFormaPagamento().formaPagamentoEhCupom()) {
-
 
385
                                total = total + pagamento.getValorPagamento();
-
 
386
                        }
-
 
387
                }
-
 
388
                return total;
-
 
389
        }
-
 
390
       
-
 
391
        @Transient
-
 
392
        public Double getTotalPagoEmCashback() {
-
 
393
                Double total = new Double(0.0);
-
 
394
                for (VendaFormaPagamento pagamento : getVendaFormaPagamentos()) {
-
 
395
                        if (pagamento.getFormaPagamento().formaPagamentoEhCashback()) {
385
                                total = total + pagamento.getValorPagamento();
396
                                total = total + pagamento.getValorPagamento();
386
                        }
397
                        }
387
                }
398
                }
388
                return total;
399
                return total;
389
        }
400
        }