From 09c1ae23821283882f3e36facbdb88d0bbf6a658 Mon Sep 17 00:00:00 2001 From: walace Date: Mon, 27 May 2019 19:47:05 +0000 Subject: [PATCH] fixes bug#14248 qua:renato dev:julio git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/Integracion/IntegracaoReceitaDespesa/trunk/IntegracaoReceitaDespesa@93849 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../entidades/DespesaReceita.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/com/rjconsultores/integracaoreceitadespesa/entidades/DespesaReceita.java b/src/com/rjconsultores/integracaoreceitadespesa/entidades/DespesaReceita.java index 5be49beab..df46bb453 100644 --- a/src/com/rjconsultores/integracaoreceitadespesa/entidades/DespesaReceita.java +++ b/src/com/rjconsultores/integracaoreceitadespesa/entidades/DespesaReceita.java @@ -20,12 +20,12 @@ public class DespesaReceita { protected String valorLancamento;// 085 013 Numérico protected final String numeroContratoTurismo = "0000000000";// 098 010 Numérico protected final String numeroReciboTurismo = " ";// 108 010 Alfanumérico - protected final String formaPagamentoTurismo = "00";// 118 002 Numérico - protected String tipoPagamentoTurismo = "00";// 120 002 Numérico + protected final String formaPagamentoTurismo = " ";// 118 002 Numérico + protected String tipoPagamentoTurismo = " ";// 120 002 Numérico protected String descricaoDetalhada = "";// 122 80 Alfanumérico protected final String documentoVenda = "000000";// 202 6 Numérico protected final String tipoDocumentoVenda = " ";// 208 1 Alfanumérico - protected final String numerodocumentoCPG = "000000000";// 209 10 Numérico + protected final String numerodocumentoCPG = "0000000000";// 209 10 Numérico protected String formaPagamentoId = "";// 218 Numérico protected final String finalLinha = "*";// 239 1 Alfanumérico @@ -49,14 +49,14 @@ public class DespesaReceita { sb.append(codigoReceitaDespesa); sb.append(identificadorReceitaDespesa.toUpperCase()); sb.append(valorLancamento); - sb.append(numeroContratoTurismo); + sb.append(StringUtils.rightPad("", 10, " ")); sb.append(numeroReciboTurismo); sb.append(getFormaPagamentoTurismo()); sb.append(getTipoPagamentoTurismo()); sb.append(descricaoDetalhada); sb.append(documentoVenda); sb.append(tipoDocumentoVenda); - sb.append(numerodocumentoCPG); + sb.append(StringUtils.rightPad("", 10, "0")); sb.append(formaPagamentoId); sb.append(finalLinha); sb.append(System.getProperty("line.separator")); @@ -96,7 +96,7 @@ public class DespesaReceita { } public void setDescricaoDetalhada(String desc) { - this.descricaoDetalhada = StringUtils.rightPad(desc != null ? truncStr(desc, 80) : "", 80, " "); + this.descricaoDetalhada = StringUtils.rightPad(desc != null ? truncStr(desc, 100) : "", 100, " "); } public String getFormaPagamentoTurismo() { @@ -108,7 +108,7 @@ public class DespesaReceita { } public void setTipoPagamentoTurismo(String tipoPagamentoTurismo) { - this.tipoPagamentoTurismo = StringUtils.leftPad(tipoPagamentoTurismo, 2, "0"); + this.tipoPagamentoTurismo = StringUtils.leftPad(tipoPagamentoTurismo, 2, " "); } public String getFormaPagamentoId() {