fixes bug #7493
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/Integracion/IntegracaoReceitaDespesa/trunk/IntegracaoReceitaDespesa@56128 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
4d159a3066
commit
494a1ca4e8
|
@ -231,8 +231,13 @@ public class Totalbus {
|
|||
receita.setDataLancamento(rs.getDate(1));
|
||||
receita.setDataMovimento(rs.getDate(1));
|
||||
receita.setLocalArrecadação(rs.getInt(6));
|
||||
receita.setValorLancamento(df.format(rs.getBigDecimal(4)));
|
||||
if (rs.getBigDecimal(4).signum() == -1){
|
||||
receita.setIdentificadorReceitaDespesa("D");
|
||||
receita.setValorLancamento(df.format(rs.getBigDecimal(4).multiply(new BigDecimal(-1))));
|
||||
} else {
|
||||
receita.setIdentificadorReceitaDespesa("R");
|
||||
receita.setValorLancamento(df.format(rs.getBigDecimal(4)));
|
||||
}
|
||||
despesas.add(receita);
|
||||
}
|
||||
} catch (Exception e){
|
||||
|
|
Loading…
Reference in New Issue