Commit ce6b595fca366660d659b5df55cddb5c7291385b
1 parent
b966379c
Exists in
master
Adicionando novos logs para analise do parcelamento sem acrescimos
Showing
2 changed files
with
26 additions
and
15 deletions
Show diff stats
src/gcom/cobranca/bean/ContaValoresHelper.java
... | ... | @@ -7,8 +7,12 @@ import gcom.util.Util; |
7 | 7 | import java.io.Serializable; |
8 | 8 | import java.math.BigDecimal; |
9 | 9 | |
10 | -public class ContaValoresHelper implements Serializable { | |
10 | +import org.jboss.logging.Logger; | |
11 | 11 | |
12 | +public class ContaValoresHelper implements Serializable { | |
13 | + | |
14 | + private static Logger logger = Logger.getLogger(ContaValoresHelper.class); | |
15 | + | |
12 | 16 | private static final long serialVersionUID = 1L; |
13 | 17 | |
14 | 18 | private Conta conta; |
... | ... | @@ -195,22 +199,25 @@ public class ContaValoresHelper implements Serializable { |
195 | 199 | } |
196 | 200 | |
197 | 201 | public BigDecimal getValorTotalContaValoresParcelamento() { |
198 | - BigDecimal retorno = new BigDecimal("0.00"); | |
202 | + BigDecimal retorno = new BigDecimal("0.00"); | |
199 | 203 | |
200 | - if (this.getValorMulta() != null) { | |
201 | - retorno = retorno.add(this.getValorMulta().setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO)); | |
202 | - } | |
204 | + logger.info(" [" + getConta().getId() + "] 00.1 multa:" + this.getValorMulta()); | |
205 | + if (this.getValorMulta() != null) { | |
206 | + retorno = retorno.add(this.getValorMulta().setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO)); | |
207 | + } | |
203 | 208 | |
204 | - if (this.getValorJurosMora() != null) { | |
205 | - retorno = retorno.add(this.getValorJurosMora().setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO)); | |
206 | - } | |
209 | + logger.info(" [" + getConta().getId() + "] 00.2 juros:" + this.getValorJurosMora()); | |
210 | + if (this.getValorJurosMora() != null) { | |
211 | + retorno = retorno.add(this.getValorJurosMora().setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO)); | |
212 | + } | |
207 | 213 | |
208 | - if (this.getValorAtualizacaoMonetaria() != null) { | |
209 | - retorno = retorno.add(this.getValorAtualizacaoMonetaria().setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO)); | |
210 | - } | |
214 | + logger.info(" [" + getConta().getId() + "] 00.3 atualizacao:" + this.getValorAtualizacaoMonetaria()); | |
215 | + if (this.getValorAtualizacaoMonetaria() != null) { | |
216 | + retorno = retorno.add(this.getValorAtualizacaoMonetaria().setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO)); | |
217 | + } | |
211 | 218 | |
212 | - return retorno.setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO); | |
213 | - } | |
219 | + return retorno.setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO); | |
220 | + } | |
214 | 221 | |
215 | 222 | public boolean equals(Object other) { |
216 | 223 | if ((this == other)) { | ... | ... |
src/gcom/gui/cobranca/ExibirEfetuarParcelamentoDebitosProcesso2Action.java
... | ... | @@ -244,8 +244,10 @@ public class ExibirEfetuarParcelamentoDebitosProcesso2Action extends GcomAction |
244 | 244 | } |
245 | 245 | |
246 | 246 | // Para cálculo do Acrescimo de Impontualidade |
247 | - valorTotalAcrescimoImpontualidadeContas.setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO); | |
248 | - valorTotalAcrescimoImpontualidadeContas = valorTotalAcrescimoImpontualidadeContas.add(contaValoresHelper.getValorTotalContaValoresParcelamento()); | |
247 | + logger.info("[" + codigoImovel + "] 0.1 - valorTotalAcrescimoImpontualidadeContas ANTES: " + valorTotalAcrescimoImpontualidadeContas); | |
248 | + valorTotalAcrescimoImpontualidadeContas.setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO); | |
249 | + valorTotalAcrescimoImpontualidadeContas = valorTotalAcrescimoImpontualidadeContas.add(contaValoresHelper.getValorTotalContaValoresParcelamento()); | |
250 | + logger.info("[" + codigoImovel + "] 0.1 - valorTotalAcrescimoImpontualidadeContas DEPOIS: " + valorTotalAcrescimoImpontualidadeContas); | |
249 | 251 | |
250 | 252 | if (parcelamentoDescontoAntiguidadeMaior.getContaMotivoRevisao() != null){ |
251 | 253 | contaValoresHelper.setRevisao(1); |
... | ... | @@ -269,8 +271,10 @@ public class ExibirEfetuarParcelamentoDebitosProcesso2Action extends GcomAction |
269 | 271 | } |
270 | 272 | |
271 | 273 | // Para cálculo do Acrescimo de Impontualidade |
274 | + logger.info("[" + codigoImovel + "] 0.2 - valorTotalAcrescimoImpontualidadeContas ANTES: " + valorTotalAcrescimoImpontualidadeContas); | |
272 | 275 | valorTotalAcrescimoImpontualidadeContas.setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO); |
273 | 276 | valorTotalAcrescimoImpontualidadeContas = valorTotalAcrescimoImpontualidadeContas.add(contaValoresHelper.getValorTotalContaValoresParcelamento()); |
277 | + logger.info("[" + codigoImovel + "] 0.2 - valorTotalAcrescimoImpontualidadeContas DEPOIS: " + valorTotalAcrescimoImpontualidadeContas); | |
274 | 278 | } |
275 | 279 | } |
276 | 280 | ... | ... |