fixes bug #8492
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/Integracion/IntegracaoReceitaDespesa/trunk/IntegracaoReceitaDespesa@65376 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
b783f73bd7
commit
5068007806
|
@ -359,10 +359,11 @@ public class Totalbus {
|
||||||
String contaCorrente = "";
|
String contaCorrente = "";
|
||||||
String numDep = " Dep: " + rsFechamentos.getString(2);
|
String numDep = " Dep: " + rsFechamentos.getString(2);
|
||||||
Integer codRecDesp = null;
|
Integer codRecDesp = null;
|
||||||
|
String numpuntoventa = rsFechamentos.getString(5);
|
||||||
|
|
||||||
if (empId == null ){ empId = rsFechamentos.getInt(4); }
|
if (empId == null ){ empId = rsFechamentos.getInt(4); }
|
||||||
if (banco.isEmpty()){banco = "Bco: " + DespesaReceita.lpad(rsFechamentos.getString(8), "0", 3);}
|
if (banco.isEmpty()){banco = "Bco: " + DespesaReceita.lpad(rsFechamentos.getString(8), "0", 3);}
|
||||||
if (pvId == null){ pvId = rsFechamentos.getInt(5); }
|
|
||||||
if (agencia.isEmpty()){ agencia = " Ag: " + rsFechamentos.getString(6); }
|
if (agencia.isEmpty()){ agencia = " Ag: " + rsFechamentos.getString(6); }
|
||||||
if (contaCorrente.isEmpty()){ contaCorrente = " C/C: " + rsFechamentos.getString(7); }
|
if (contaCorrente.isEmpty()){ contaCorrente = " C/C: " + rsFechamentos.getString(7); }
|
||||||
//ref += ref.length() <= 6 ? sdf.format(rsFechamentos.getDate(3)) : ", " + sdf.format(rsFechamentos.getDate(3));
|
//ref += ref.length() <= 6 ? sdf.format(rsFechamentos.getDate(3)) : ", " + sdf.format(rsFechamentos.getDate(3));
|
||||||
|
@ -372,7 +373,7 @@ public class Totalbus {
|
||||||
deposito.setCodigoEmpresa(empId);
|
deposito.setCodigoEmpresa(empId);
|
||||||
deposito.setDataLancamento(rsFechamentos.getDate(10));
|
deposito.setDataLancamento(rsFechamentos.getDate(10));
|
||||||
deposito.setDataMovimento(rsFechamentos.getDate(3));
|
deposito.setDataMovimento(rsFechamentos.getDate(3));
|
||||||
deposito.setLocalArrecadação(pvId);
|
deposito.setLocalArrecadação(numpuntoventa);
|
||||||
deposito.setValorLancamento(df.format(rsFechamentos.getBigDecimal(1)));
|
deposito.setValorLancamento(df.format(rsFechamentos.getBigDecimal(1)));
|
||||||
deposito.setIdentificadorReceitaDespesa("D");
|
deposito.setIdentificadorReceitaDespesa("D");
|
||||||
deposito.setCodigoReceitaDespesa(codRecDesp);
|
deposito.setCodigoReceitaDespesa(codRecDesp);
|
||||||
|
|
|
@ -55,6 +55,10 @@ public class DespesaReceita {
|
||||||
public void setLocalArrecadação(Integer localArrecadação) {
|
public void setLocalArrecadação(Integer localArrecadação) {
|
||||||
this.localArrecadação = rpad(localArrecadação.toString(), " ", 5);
|
this.localArrecadação = rpad(localArrecadação.toString(), " ", 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setLocalArrecadação(String localArrecadação) {
|
||||||
|
this.localArrecadação = rpad(localArrecadação.toString(), " ", 5);
|
||||||
|
}
|
||||||
|
|
||||||
public void setDataMovimento(Date dataMovimento) {
|
public void setDataMovimento(Date dataMovimento) {
|
||||||
this.dataMovimento = sdf.format(dataMovimento);
|
this.dataMovimento = sdf.format(dataMovimento);
|
||||||
|
|
Loading…
Reference in New Issue