Commit 8c99655298c1df8ec4dc7bd354d986b8d147ba2d

Authored by Pamela
1 parent a8a2abcc
Exists in master

Adicionando novos logs para analise do problema de acrescimos no parcelamento

src/gcom/cobranca/ControladorCobranca.java
... ... @@ -3883,6 +3883,7 @@ public class ControladorCobranca extends ControladorComum {
3883 3883 Collection contas = null;
3884 3884 Short indicadorAcrescimosCliente = null;
3885 3885  
  3886 + logger.info("[" + idImovel + "] indicadorDebito: " + indicadorDebito);
3886 3887 if (indicadorDebito == 1) {
3887 3888 // contas do imovel
3888 3889 try {
... ... @@ -3893,7 +3894,7 @@ public class ControladorCobranca extends ControladorComum {
3893 3894 anoMesFinalVencimentoDebito, indicadorDividaAtiva, false);
3894 3895  
3895 3896 indicadorAcrescimosCliente = this.obterIndicadorAcrescimosClienteResponsavel(idImovel);
3896   -
  3897 + logger.info("[" + idImovel + "] indicadorAcrescimosCliente: " + indicadorAcrescimosCliente);
3897 3898 } catch (ErroRepositorioException ex) {
3898 3899 sessionContext.setRollbackOnly();
3899 3900 throw new ControladorException("erro.sistema", ex);
... ... @@ -3909,7 +3910,7 @@ public class ControladorCobranca extends ControladorComum {
3909 3910 anoMesFinalVencimentoDebito, indicadorDividaAtiva);
3910 3911  
3911 3912 indicadorAcrescimosCliente = this.obterIndicadorAcrescimosCliente(idCliente);
3912   -
  3913 + logger.info("[" + idImovel + "] indicadorAcrescimosCliente: " + indicadorAcrescimosCliente);
3913 3914 } catch (ErroRepositorioException ex) {
3914 3915 throw new ControladorException("erro.sistema", ex);
3915 3916 }
... ... @@ -3926,6 +3927,7 @@ public class ControladorCobranca extends ControladorComum {
3926 3927 if (idCliente != null) {
3927 3928  
3928 3929 indicadorAcrescimosCliente = this.obterIndicadorAcrescimosCliente(idCliente);
  3930 + logger.info("[" + idImovel + "] indicadorAcrescimosCliente: " + indicadorAcrescimosCliente);
3929 3931 }
3930 3932 }
3931 3933 } catch (ErroRepositorioException ex) {
... ... @@ -3944,6 +3946,7 @@ public class ControladorCobranca extends ControladorComum {
3944 3946 anoMesFinalVencimentoDebito, indicadorDividaAtiva);
3945 3947  
3946 3948 indicadorAcrescimosCliente = this.obterIndicadorAcrescimosCliente(idCliente);
  3949 + logger.info("[" + idImovel + "] indicadorAcrescimosCliente: " + indicadorAcrescimosCliente);
3947 3950 }
3948 3951 } catch (ErroRepositorioException ex) {
3949 3952 sessionContext.setRollbackOnly();
... ... @@ -4117,8 +4120,8 @@ public class ControladorCobranca extends ControladorComum {
4117 4120 Categoria categoriaPrincipal = this.getControladorImovel().obterPrincipalCategoriaImovel(conta.getImovel().getId());
4118 4121  
4119 4122 if (categoriaPrincipal.getIndicadorCobrancaAcrescimos().equals(ConstantesSistema.NAO)) {
4120   -
4121 4123 indicadorCobrancaAcrescimos = false;
  4124 + logger.info("[" + idImovel + "] 1 - indicadorCobrancaAcrescimos: " + indicadorCobrancaAcrescimos);
4122 4125 }
4123 4126  
4124 4127 /**
... ... @@ -4142,8 +4145,11 @@ public class ControladorCobranca extends ControladorComum {
4142 4145 if (indicadorAcrescimosClienteResponsavel != null && indicadorAcrescimosClienteResponsavel.equals(ConstantesSistema.NAO)) {
4143 4146  
4144 4147 indicadorCobrancaAcrescimos = false;
  4148 + logger.info("[" + idImovel + "] 2 - indicadorCobrancaAcrescimos: " + indicadorCobrancaAcrescimos);
4145 4149 }
4146 4150  
  4151 + logger.info("[" + idImovel + "] indicadorCalcularAcrescimoImpontualidade: " + indicadorCalcularAcrescimoImpontualidade);
  4152 +
4147 4153 // Calcular o Acrescimo por Impontualidade
4148 4154 if (indicadorCalcularAcrescimoImpontualidade == 1 && indicadorCobrancaAcrescimos) {
4149 4155  
... ... @@ -4161,6 +4167,8 @@ public class ControladorCobranca extends ControladorComum {
4161 4167 conta.getIndicadorCobrancaMulta(), anoMesArrecadacao, conta.getId(),
4162 4168 ConstantesSistema.INDICADOR_ARRECADACAO_DESATIVO);
4163 4169  
  4170 + logger.info("[" + idImovel + "] calcularAcrescimoPorImpontualidade != null ?? " + (calcularAcrescimoPorImpontualidade != null));
  4171 +
4164 4172 // set os Valores
4165 4173 if (calcularAcrescimoPorImpontualidade != null) {
4166 4174  
... ...
src/gcom/gui/cobranca/ExibirEfetuarParcelamentoDebitosProcesso1Action.java
... ... @@ -96,6 +96,7 @@ public class ExibirEfetuarParcelamentoDebitosProcesso1Action extends GcomAction
96 96 throw new ActionServletException("atencao.debito.ja.parcelado.mes.faturamento.corrente");
97 97 }
98 98  
  99 + logger.info("[" + codigoImovel + "] obterDebitosImovelOuCliente()");
99 100 ObterDebitoImovelOuClienteHelper colecaoDebitoImovel = obterDebitosImovelOuCliente(fachada, codigoImovel);
100 101  
101 102 validarExistenciaDebitosImovel(codigoImovel, colecaoDebitoImovel);
... ... @@ -169,6 +170,7 @@ public class ExibirEfetuarParcelamentoDebitosProcesso1Action extends GcomAction
169 170 Parcelamento.TIPO_ARREDONDAMENTO));
170 171 }
171 172  
  173 + logger.info("[" + codigoImovel + "] chamando método contaValoresHelper.getValorTotalContaValoresParcelamento");
172 174 valorTotalAcrescimoImpontualidadeContas.setScale(Parcelamento.CASAS_DECIMAIS, Parcelamento.TIPO_ARREDONDAMENTO);
173 175 valorTotalAcrescimoImpontualidadeContas = valorTotalAcrescimoImpontualidadeContas.add(contaValoresHelper
174 176 .getValorTotalContaValoresParcelamento());
... ...