fixes bug #7288
fixes bug #7287 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/Integracion/IntegracaoReceitaDespesa/trunk/IntegracaoReceitaDespesa@54283 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
106596f4bf
commit
370b1e3f10
|
@ -306,11 +306,6 @@ public class Totalbus {
|
|||
|
||||
public List<DespesaReceita> getDepositos(Integer puntoventaId, Integer empresaId, Date fechaParam){
|
||||
List<DespesaReceita> depositos = new ArrayList<DespesaReceita>();
|
||||
// StringBuilder sb = new StringBuilder();
|
||||
// sb.append("select fdep.fechamentodeposito_id, fdep.valor, fdep.numdeposito, fdep.FECCREACION, fdep.fecha_deposito ");
|
||||
// sb.append("from fechamento_deposito fdep ");
|
||||
// sb.append("where trunc(FECCREACION) = :fecha and fdep.activo = 1 ");
|
||||
|
||||
|
||||
StringBuilder strFechamentos = new StringBuilder();
|
||||
strFechamentos.append("Select sum(fdep.valor), fdep.numdeposito, fdep.fecha_deposito, fc.empresa_id, pv.numpuntoventa, ec.numagencia, ec.numconta, if.CODIGO, ec.numintegracion, fdep.feccreacion ");
|
||||
|
@ -338,23 +333,10 @@ public class Totalbus {
|
|||
fecha = getData();
|
||||
}
|
||||
|
||||
//PreparedStatement pstmt = null;
|
||||
//ResultSet rs = null;
|
||||
|
||||
|
||||
// pstmt = getConnection().prepareStatement(sb.toString());
|
||||
// pstmt.setDate(1, new java.sql.Date(fecha.getTime()));
|
||||
//
|
||||
// rs = pstmt.executeQuery();
|
||||
Integer codigoReceitaDespesaGlobus = getCodigoReceitaDespesaGlobus();
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("MM/yy");
|
||||
|
||||
PreparedStatement pstmtFechamentos = null;
|
||||
ResultSet rsFechamentos = null;
|
||||
BigDecimal soma = BigDecimal.ZERO;
|
||||
try{
|
||||
// while (rs.next()){
|
||||
pstmtFechamentos = getConnection().prepareStatement(strFechamentos.toString());
|
||||
pstmtFechamentos.setDate(1, new java.sql.Date(fecha.getTime()));
|
||||
|
||||
|
@ -367,8 +349,6 @@ public class Totalbus {
|
|||
String agencia = "";
|
||||
String contaCorrente = "";
|
||||
String numDep = " Dep: " + rsFechamentos.getString(2);
|
||||
String valor = " R$ " + df.format(rsFechamentos.getBigDecimal(1));
|
||||
String ref = " Ref: ";
|
||||
Integer codRecDesp = null;
|
||||
|
||||
if (empId == null ){ empId = rsFechamentos.getInt(4); }
|
||||
|
|
Loading…
Reference in New Issue