Subversion Repositories Integrator Subversion

Rev

Rev 315 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
106 espaco 1
package br.com.ec.domain.dto;
2
 
3
import java.util.ArrayList;
4
import java.util.Date;
5
import java.util.List;
6
 
7
import br.com.ec.domain.model.Loja;
8
import br.com.ec.domain.model.Pagamento;
9
import br.com.ec.domain.model.Venda;
10
import br.com.ec.domain.model.VendaFormaPagamento;
11
import br.com.ec.domain.model.tipos.TipoSituacaoVenda;
12
 
13
public class ParametrosFecharCaixaDTO {
14
 
15
        private Loja loja;
16
        private Date dataVendas;
17
        private Boolean processado;
18
 
19
        private List<Venda> listaVendas;
20
        private List<Pagamento> listaPagamentos;
315 espaco 21
 
22
        private List<CartaoResumoDTO> cartoesResumo;
106 espaco 23
        private CartaoResumoDTO cartaoResumo;
24
 
25
        private Double totalEmDinheiro;
26
        private Integer quantidadeEmCartao;
27
        private Double totalEmCartao;
28
        private Integer quantidadeNoDebito;
29
        private Double totalNoDebito;
30
        private Integer quantidadeNoCredito;
31
        private Double totalNoCredito;
32
        private Integer quantidadeEm1;
33
        private Double totalEm1;
34
        private Integer quantidadeEm2;
35
        private Double totalEm2;
36
        private Integer quantidadeEm3;
37
        private Double totalEm3;
38
        private Integer quantidadeEm4;
39
        private Double totalEm4;
40
        private Integer quantidadeEm5;
41
        private Double totalEm5;
42
        private Integer quantidadeEm6;
43
        private Double totalEm6;
44
        private Integer quantidadeEm7;
45
        private Double totalEm7;
46
        private Integer quantidadeEm8;
47
        private Double totalEm8;
48
        private Integer quantidadeEm9;
49
        private Double totalEm9;
50
        private Integer quantidadeEm10;
51
        private Double totalEm10;
52
        private Integer quantidadeEm11;
53
        private Double totalEm11;
54
        private Integer quantidadeEm12;
55
        private Double totalEm12;
270 espaco 56
        private Integer quantidadeEm13;
57
        private Double totalEm13;
58
        private Integer quantidadeEm14;
59
        private Double totalEm14;
60
        private Integer quantidadeEm15;
61
        private Double totalEm15;
106 espaco 62
        private Integer quantidadeNoPagseguro;
63
        private Double totalNoPagseguro;
64
        private Integer quantidadeNoPix;
65
        private Double totalNoPix;
344 espaco 66
        private Integer quantidadeNaTransferencia;
67
        private Double totalNaTransferencia;
106 espaco 68
        private Integer quantidadeEmOutros;
69
        private Double totalEmOutros;
70
 
71
        private Double subtotal;
72
        private Double total;
73
 
74
        public ParametrosFecharCaixaDTO() {
75
                iniciarEntidade();
76
        }
77
 
78
        public ParametrosFecharCaixaDTO(Loja loja, Date dataRecebimento) {
79
                this.loja = loja;
80
                this.dataVendas = dataRecebimento;
81
                iniciarEntidade();
82
        }
83
 
84
        private void iniciarEntidade() {
85
                processado = false;
86
                listaVendas = new ArrayList<Venda>();
87
                listaPagamentos = new ArrayList<Pagamento>();
88
                totalEmDinheiro = new Double(0.0);
89
                totalEmCartao = new Double(0.0);
90
                quantidadeEmCartao = new Integer(0);
91
                totalNoDebito = new Double(0.0);
92
                quantidadeNoDebito = new Integer(0);
93
                totalNoCredito = new Double(0.0);
94
                quantidadeNoCredito = new Integer(0);
95
                totalEm1 = new Double(0.0);
96
                quantidadeEm1 = new Integer(0);
97
                totalEm2 = new Double(0.0);
98
                quantidadeEm2 = new Integer(0);
99
                totalEm3 = new Double(0.0);
100
                quantidadeEm3 = new Integer(0);
101
                totalEm4 = new Double(0.0);
102
                quantidadeEm4 = new Integer(0);
103
                totalEm5 = new Double(0.0);
104
                quantidadeEm5 = new Integer(0);
105
                totalEm6 = new Double(0.0);
106
                quantidadeEm6 = new Integer(0);
107
                totalEm7 = new Double(0.0);
108
                quantidadeEm7 = new Integer(0);
109
                totalEm8 = new Double(0.0);
110
                quantidadeEm8 = new Integer(0);
111
                totalEm9 = new Double(0.0);
112
                quantidadeEm9 = new Integer(0);
113
                totalEm10 = new Double(0.0);
114
                quantidadeEm10 = new Integer(0);
115
                totalEm11 = new Double(0.0);
116
                quantidadeEm11 = new Integer(0);
117
                totalEm12 = new Double(0.0);
118
                quantidadeEm12 = new Integer(0);
270 espaco 119
                totalEm13 = new Double(0.0);
120
                quantidadeEm13 = new Integer(0);
121
                totalEm14 = new Double(0.0);
122
                quantidadeEm14 = new Integer(0);
123
                totalEm15 = new Double(0.0);
124
                quantidadeEm15 = new Integer(0);
106 espaco 125
                totalNoPagseguro = new Double(0.0);
126
                quantidadeNoPagseguro = new Integer(0);
127
                totalNoPix = new Double(0.0);
128
                quantidadeNoPix = new Integer(0);
344 espaco 129
                totalNaTransferencia = new Double(0.0);
130
                quantidadeNaTransferencia = new Integer(0);
106 espaco 131
                totalEmOutros = new Double(0.0);
132
                quantidadeEmOutros= new Integer(0);
133
                subtotal = new Double(0.0);
134
                total = new Double(0.0);
135
        }
136
 
137
        public Loja getLoja() {
138
                return loja;
139
        }
140
        public void setLoja(Loja loja) {
141
                this.loja = loja;
142
        }
143
 
144
        public Date getDataVendas() {
145
                return dataVendas;
146
        }
147
        public void setDataVendas(Date dataVendas) {
148
                this.dataVendas = dataVendas;
149
        }
150
 
151
        public Boolean getProcessado() {
152
                return processado;
153
        }
154
        public void setProcessado(Boolean processado) {
155
                this.processado = processado;
156
        }
157
 
158
        public List<Venda> getListaVendas() {
159
                return listaVendas;
160
        }
161
        public void setListaVendas(List<Venda> listaVendas) {
162
                this.listaVendas = listaVendas;
163
        }
164
 
165
        public List<Pagamento> getListaPagamentos() {return listaPagamentos;}
166
        public void setListaPagamentos(List<Pagamento> listaPagamentos) {this.listaPagamentos = listaPagamentos;}
167
 
168
        public CartaoResumoDTO getCartaoResumo() {
169
                return cartaoResumo;
170
        }
171
        public void setCartaoResumo(CartaoResumoDTO cartaoResumo) {
172
                this.cartaoResumo = cartaoResumo;
173
        }
174
 
175
        public Double getTotalEmDinheiro() {return totalEmDinheiro;}
176
        public void setTotalEmDinheiro(Double totalEmDinheiro) {this.totalEmDinheiro = totalEmDinheiro;}
177
 
178
        public Double getTotalEmCartao() {return totalEmCartao;}
179
        public void setTotalEmCartao(Double totalEmCartao) {this.totalEmCartao = totalEmCartao;}
180
        public Integer getQuantidadeEmCartao() {return quantidadeEmCartao;}
181
        public void setQuantidadeEmCartao(Integer quantidadeEmCartao) {this.quantidadeEmCartao = quantidadeEmCartao;}
182
 
183
        public Double getTotalNoDebito() {return totalNoDebito;}
184
        public void setTotalNoDebito(Double totalNoDebito) {this.totalNoDebito = totalNoDebito;}
185
        public Integer getQuantidadeNoDebito() {return quantidadeNoDebito;}
186
        public void setQuantidadeNoDebito(Integer quantidadeNoDebito) {this.quantidadeNoDebito = quantidadeNoDebito;}
187
 
188
        public Double getTotalNoCredito() {return totalNoCredito;}
189
        public void setTotalNoCredito(Double totalNoCredito) {this.totalNoCredito = totalNoCredito;}
190
        public Integer getQuantidadeNoCredito() {return quantidadeNoCredito;}
191
        public void setQuantidadeNoCredito(Integer quantidadeNoCredito) {this.quantidadeNoCredito = quantidadeNoCredito;}
192
 
193
        public Double getTotalEm1() {return totalEm1;}
194
        public void setTotalEm1(Double totalEm1) {this.totalEm1 = totalEm1;}
195
        public Integer getQuantidadeEm1() {return quantidadeEm1;}
196
        public void setQuantidadeEm1(Integer quantidadeEm1) {this.quantidadeEm1 = quantidadeEm1;}
197
 
198
        public Double getTotalEm2() {return totalEm2;}
199
        public void setTotalEm2(Double totalEm2) {this.totalEm2 = totalEm2;}
200
        public Integer getQuantidadeEm2() {return quantidadeEm2;}
201
        public void setQuantidadeEm2(Integer quantidadeEm2) {this.quantidadeEm2 = quantidadeEm2;}
202
 
203
        public Double getTotalEm3() {return totalEm3;}
204
        public void setTotalEm3(Double totalEm3) {this.totalEm3 = totalEm3;}
205
        public Integer getQuantidadeEm3() {return quantidadeEm3;}
206
        public void setQuantidadeEm3(Integer quantidadeEm3) {this.quantidadeEm3 = quantidadeEm3;}
207
 
208
        public Double getTotalEm4() {return totalEm4;}
209
        public void setTotalEm4(Double totalEm4) {this.totalEm4 = totalEm4;}
210
        public Integer getQuantidadeEm4() {return quantidadeEm4;}
211
        public void setQuantidadeEm4(Integer quantidadeEm4) {this.quantidadeEm4 = quantidadeEm4;}
212
 
213
        public Double getTotalEm5() {return totalEm5;}
214
        public void setTotalEm5(Double totalEm5) {this.totalEm5 = totalEm5;}
215
        public Integer getQuantidadeEm5() {return quantidadeEm5;}
216
        public void setQuantidadeEm5(Integer quantidadeEm5) {this.quantidadeEm5 = quantidadeEm5;}
217
 
218
        public Double getTotalEm6() {return totalEm6;}
219
        public void setTotalEm6(Double totalEm6) {this.totalEm6 = totalEm6;}
220
        public Integer getQuantidadeEm6() {return quantidadeEm6;}
221
        public void setQuantidadeEm6(Integer quantidadeEm6) {this.quantidadeEm6 = quantidadeEm6;}
222
 
223
        public Double getTotalEm7() {return totalEm7;}
224
        public void setTotalEm7(Double totalEm7) {this.totalEm7 = totalEm7;}
225
        public Integer getQuantidadeEm7() {return quantidadeEm7;}
226
        public void setQuantidadeEm7(Integer quantidadeEm7) {this.quantidadeEm7 = quantidadeEm7;}
227
 
228
        public Double getTotalEm8() {return totalEm8;}
229
        public void setTotalEm8(Double totalEm8) {this.totalEm8 = totalEm8;}
230
        public Integer getQuantidadeEm8() {return quantidadeEm8;}
231
        public void setQuantidadeEm8(Integer quantidadeEm8) {this.quantidadeEm8 = quantidadeEm8;}
232
 
233
        public Double getTotalEm9() {return totalEm9;}
234
        public void setTotalEm9(Double totalEm9) {this.totalEm9 = totalEm9;}
235
        public Integer getQuantidadeEm9() {return quantidadeEm9;}
236
        public void setQuantidadeEm9(Integer quantidadeEm9) {this.quantidadeEm9 = quantidadeEm9;}
237
 
238
        public Double getTotalEm10() {return totalEm10;}
239
        public void setTotalEm10(Double totalEm10) {this.totalEm10 = totalEm10;}
240
        public Integer getQuantidadeEm10() {return quantidadeEm10;}
241
        public void setQuantidadeEm10(Integer quantidadeEm10) {this.quantidadeEm10 = quantidadeEm10;}
242
 
243
        public Double getTotalEm11() {return totalEm11;}
244
        public void setTotalEm11(Double totalEm11) {this.totalEm11 = totalEm11;}
245
        public Integer getQuantidadeEm11() {return quantidadeEm11;}
246
        public void setQuantidadeEm11(Integer quantidadeEm11) {this.quantidadeEm11 = quantidadeEm11;}
247
 
248
        public Double getTotalEm12() {return totalEm12;}
249
        public void setTotalEm12(Double totalEm12) {this.totalEm12 = totalEm12;}
250
        public Integer getQuantidadeEm12() {return quantidadeEm12;}
251
        public void setQuantidadeEm12(Integer quantidadeEm12) {this.quantidadeEm12 = quantidadeEm12;}
270 espaco 252
 
253
        public Double getTotalEm13() {return totalEm13;}
254
        public void setTotalEm13(Double totalEm13) {this.totalEm13 = totalEm13;}
255
        public Integer getQuantidadeEm13() {return quantidadeEm13;}
256
        public void setQuantidadeEm13(Integer quantidadeEm13) {this.quantidadeEm13 = quantidadeEm13;}
257
 
258
        public Double getTotalEm14() {return totalEm14;}
259
        public void setTotalEm14(Double totalEm14) {this.totalEm14 = totalEm14;}
260
        public Integer getQuantidadeEm14() {return quantidadeEm14;}
261
        public void setQuantidadeEm14(Integer quantidadeEm14) {this.quantidadeEm14 = quantidadeEm14;}
262
 
263
        public Double getTotalEm15() {return totalEm15;}
264
        public void setTotalEm15(Double totalEm15) {this.totalEm15 = totalEm15;}
265
        public Integer getQuantidadeEm15() {return quantidadeEm15;}
266
        public void setQuantidadeEm15(Integer quantidadeEm15) {this.quantidadeEm15 = quantidadeEm15;}
106 espaco 267
 
268
        public Double getTotalNoPagseguro() {return totalNoPagseguro;}
269
        public void setTotalNoPagseguro(Double totalNoPagseguro) {this.totalNoPagseguro = totalNoPagseguro;}
270
        public Integer getQuantidadeNoPagseguro() {return quantidadeNoPagseguro;}
271
        public void setQuantidadeNoPagseguro(Integer quantidadeNoPagseguro) {this.quantidadeNoPagseguro = quantidadeNoPagseguro;}
272
 
273
        public Double getTotalNoPix() {return totalNoPix;}
274
        public void setTotalNoPix(Double totalNoPix) {this.totalNoPix = totalNoPix;}
275
        public Integer getQuantidadeNoPix() {return quantidadeNoPix;}
276
        public void setQuantidadeNoPix(Integer quantidadeNoPix) {this.quantidadeNoPix = quantidadeNoPix;}
277
 
344 espaco 278
        public Double getTotalNaTransferencia() {return totalNaTransferencia;}
279
        public void setTotalNaTransferencia(Double totalNaTransferencia) {this.totalNaTransferencia = totalNaTransferencia;}
280
        public Integer getQuantidadeNaTransferencia() {return quantidadeNaTransferencia;}
281
        public void setQuantidadeNaTransferencia(Integer quantidadeNaTransferencia) {this.quantidadeNaTransferencia = quantidadeNaTransferencia;}
282
 
106 espaco 283
        public Double getTotalEmOutros() {return totalEmOutros;}
284
        public void setTotalEmOutros(Double totalEmOutros) {this.totalEmOutros = totalEmOutros;}
285
        public Integer getQuantidadeEmOutros() {return quantidadeEmOutros;}
286
        public void setQuantidadeEmOutros(Integer quantidadeEmOutros) {this.quantidadeEmOutros = quantidadeEmOutros;}
287
 
288
        public Double getSubtotal() {
289
                return subtotal;
290
        }
291
        public void setSubtotal(Double subtotal) {
292
                this.subtotal = subtotal;
293
        }
294
 
295
        public Double getTotal() {
296
                return total;
297
        }
298
        public void setTotal(Double total) {
299
                this.total = total;
300
        }
301
 
302
        public Double getTotalPagamentos() {
303
                Double totalPagamentos = new Double(0.0);
304
                for (Pagamento pagamento : getListaPagamentos()) {
305
                        totalPagamentos = totalPagamentos + pagamento.getValor();
306
                }
307
                return totalPagamentos;
308
        }
309
 
310
        public void iniciarFechamento() {
311
                for (Venda venda : getListaVendas()) {
312
                        for (VendaFormaPagamento vendaFormaPagamento : venda.getListaVendaFormaPagamentos()) {
313
                                total = total + vendaFormaPagamento.getValorPagamento();
314
                                if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEhDinheiro()) {
315
                                        totalEmDinheiro = totalEmDinheiro + vendaFormaPagamento.getValorPagamento();
316
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEhDebito()) {
317
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
318
                                        quantidadeNoDebito = quantidadeNoDebito + 1;
319
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
320
                                        totalNoDebito = totalNoDebito + vendaFormaPagamento.getValorPagamento();
321
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEhPagseguro()) {
322
                                        quantidadeNoPagseguro = quantidadeNoPagseguro + 1;
323
                                        totalNoPagseguro = totalNoPagseguro + vendaFormaPagamento.getValorPagamento();
324
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEhPix()) {
325
                                        quantidadeNoPix = quantidadeNoPix + 1;
326
                                        totalNoPix = totalNoPix + vendaFormaPagamento.getValorPagamento();
344 espaco 327
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEhTransferencia()) {
328
                                        quantidadeNaTransferencia = quantidadeNaTransferencia + 1;
329
                                        totalNaTransferencia= totalNaTransferencia + vendaFormaPagamento.getValorPagamento();
106 espaco 330
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEhOutros()) {
331
                                        quantidadeEmOutros = quantidadeEmOutros + 1;
332
                                        totalEmOutros = totalEmOutros + vendaFormaPagamento.getValorPagamento();
333
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh1x()) {
334
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
335
                                        quantidadeEm1 = quantidadeEm1 + 1;
336
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
337
                                        totalEm1 = totalEm1 + vendaFormaPagamento.getValorPagamento();
338
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh2x()) {
339
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
340
                                        quantidadeEm2 = quantidadeEm2 + 1;
341
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
342
                                        totalEm2 = totalEm2 + vendaFormaPagamento.getValorPagamento();
343
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh3x()) {
344
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
345
                                        quantidadeEm3 = quantidadeEm3 + 1;
346
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
347
                                        totalEm3 = totalEm3 + vendaFormaPagamento.getValorPagamento();
348
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh4x()) {
349
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
350
                                        quantidadeEm4 = quantidadeEm4 + 1;
351
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
352
                                        totalEm4 = totalEm4 + vendaFormaPagamento.getValorPagamento();
353
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh5x()) {
354
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
355
                                        quantidadeEm5 = quantidadeEm5 + 1;
356
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
357
                                        totalEm5 = totalEm5 + vendaFormaPagamento.getValorPagamento();
358
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh6x()) {
359
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
360
                                        quantidadeEm6 = quantidadeEm6 + 1;
361
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
362
                                        totalEm6 = totalEm6 + vendaFormaPagamento.getValorPagamento();
363
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh7x()) {
364
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
365
                                        quantidadeEm7 = quantidadeEm7 + 1;
366
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
367
                                        totalEm7 = totalEm7 + vendaFormaPagamento.getValorPagamento();
368
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh8x()) {
369
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
370
                                        quantidadeEm8 = quantidadeEm8 + 1;
371
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
372
                                        totalEm8 = totalEm8 + vendaFormaPagamento.getValorPagamento();
373
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh9x()) {
374
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
375
                                        quantidadeEm9 = quantidadeEm9 + 1;
376
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
377
                                        totalEm9 = totalEm9 + vendaFormaPagamento.getValorPagamento();
378
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh10x()) {
379
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
380
                                        quantidadeEm10 = quantidadeEm10 + 1;
381
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
382
                                        totalEm10 = totalEm10 + vendaFormaPagamento.getValorPagamento();
383
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh11x()) {
384
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
385
                                        quantidadeEm11 = quantidadeEm11 + 1;
386
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
387
                                        totalEm10 = totalEm10 + vendaFormaPagamento.getValorPagamento();
388
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh12x()) {
389
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
390
                                        quantidadeEm12 = quantidadeEm12 + 1;
391
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
270 espaco 392
                                        totalEm12 = totalEm12 + vendaFormaPagamento.getValorPagamento();
393
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh13x()) {
394
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
395
                                        quantidadeEm13 = quantidadeEm13 + 1;
396
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
397
                                        totalEm13 = totalEm13 + vendaFormaPagamento.getValorPagamento();
398
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh14x()) {
399
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
400
                                        quantidadeEm14 = quantidadeEm14 + 1;
401
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
402
                                        totalEm14 = totalEm14 + vendaFormaPagamento.getValorPagamento();
403
                                } else if (vendaFormaPagamento.getFormaPagamento().formaPagamentoEh15x()) {
404
                                        quantidadeEmCartao = quantidadeEmCartao + 1;
405
                                        quantidadeEm15 = quantidadeEm15 + 1;
406
                                        totalEmCartao = totalEmCartao + vendaFormaPagamento.getValorPagamento();
407
                                        totalEm15 = totalEm15 + vendaFormaPagamento.getValorPagamento();
106 espaco 408
                                }
409
                        }
410
                }
411
                subtotal = totalEmDinheiro - getTotalPagamentos();
412
                processado = true;
413
        }
414
 
415
        public Boolean getVendasConferidas() {
416
                for (Venda venda : getListaVendas()) {
417
                        if (venda.getTipoSituacao().equals(TipoSituacaoVenda.NOVO.getValor())) {
418
                                return false;
419
                        }
420
                }
421
                return true;
422
        }
423
 
424
}