Rev 293 | Rev 314 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 293 | Rev 313 | ||
|---|---|---|---|
| Line 376... | Line 376... | ||
| 376 | String bandeira = StringUtil.setarUpperCaseComTrim(dadosSeparados[4]); |
376 | String bandeira = StringUtil.setarUpperCaseComTrim(dadosSeparados[4]); |
| 377 | String tipoCartao = null; |
377 | String tipoCartao = null; |
| 378 | if (bandeira.equals("Débito") || bandeira.equals("D�BITO")) { |
378 | if (bandeira.equals("Débito") || bandeira.equals("D�BITO")) { |
| 379 | tipoCartao = TipoCartao.DEBITO.getValor(); |
379 | tipoCartao = TipoCartao.DEBITO.getValor(); |
| 380 | formaPagamento = new FormaPagamento(ConstantesSEC.FormasDePagamento.FORMAPAGAMENTO_DEBITO); |
380 | formaPagamento = new FormaPagamento(ConstantesSEC.FormasDePagamento.FORMAPAGAMENTO_DEBITO); |
| 381 | if (cartao.getBandeira().equals("MasterCard")) { |
- | |
| - | 381 | if (cartao.getBandeira().equals("MasterCard") || cartao.getBandeira().equals("MASTERCARD")) { |
|
| 382 | cartao.setBandeira("MAESTRO"); |
382 | cartao.setBandeira("MAESTRO"); |
| 383 | }
|
383 | }
|
| 384 | } else { |
384 | } else { |
| 385 | tipoCartao = TipoCartao.CREDITO.getValor(); |
385 | tipoCartao = TipoCartao.CREDITO.getValor(); |
| 386 | String parcelas = dadosSeparados[6]; |
386 | String parcelas = dadosSeparados[6]; |
| 387 | if (parcelas.equals("À vista") || parcelas.equals("� vista")) { |
387 | if (parcelas.equals("À vista") || parcelas.equals("� vista")) { |
| 388 | parcelas = "1"; |
388 | parcelas = "1"; |
| - | 389 | } else if (parcelas.equals("Parcelado")) { |
|
| - | 390 | parcelas = "2"; |
|
| 389 | }
|
391 | }
|
| 390 | formaPagamento = new FormaPagamento(FormaPagamento.recuperarCodigoDaFormaDePagamento(parcelas)); |
392 | formaPagamento = new FormaPagamento(FormaPagamento.recuperarCodigoDaFormaDePagamento(parcelas)); |
| 391 | }
|
393 | }
|
| 392 | cartao.setBrutoImportado(new Double(dadosSeparados[7])); |
394 | cartao.setBrutoImportado(new Double(dadosSeparados[7])); |
| 393 | preencherDadosArquivo(dataLinha, cartao, formaPagamento, tipoCartao); |
395 | preencherDadosArquivo(dataLinha, cartao, formaPagamento, tipoCartao); |