fixes bug#10852
dev:fabio qua:marcelo git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@80799 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
8202efdbb2
commit
54475f5465
|
@ -468,9 +468,11 @@ public class CalculoComissaoServiceImpl implements CalculoComissaoService {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean validaAltaTemporada(List<EmpresaImposto> impostos, int mes, int estadoId) {
|
private boolean validaAltaTemporada(List<EmpresaImposto> impostos, Integer mes, Integer estadoId) {
|
||||||
|
if(impostos != null && mes != null && estadoId != null) {
|
||||||
|
|
||||||
for (EmpresaImposto ei : impostos) {
|
for (EmpresaImposto ei : impostos) {
|
||||||
|
if(ei.getEstado() != null) {
|
||||||
if (ei.getEstado().getEstadoId().equals(estadoId)) {
|
if (ei.getEstado().getEstadoId().equals(estadoId)) {
|
||||||
switch (mes) {
|
switch (mes) {
|
||||||
case Calendar.JANUARY:
|
case Calendar.JANUARY:
|
||||||
|
@ -502,6 +504,9 @@ public class CalculoComissaoServiceImpl implements CalculoComissaoService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -753,11 +758,15 @@ public class CalculoComissaoServiceImpl implements CalculoComissaoService {
|
||||||
|
|
||||||
private List<EventosFinanceirosVO> verificaEventoFinanceiroProDia(List<EventosFinanceirosVO> eventosFinanceirosVOs, Date dataRegistro) {
|
private List<EventosFinanceirosVO> verificaEventoFinanceiroProDia(List<EventosFinanceirosVO> eventosFinanceirosVOs, Date dataRegistro) {
|
||||||
List<EventosFinanceirosVO> aux = new ArrayList<EventosFinanceirosVO>();
|
List<EventosFinanceirosVO> aux = new ArrayList<EventosFinanceirosVO>();
|
||||||
|
if(eventosFinanceirosVOs != null) {
|
||||||
for (EventosFinanceirosVO rcc : eventosFinanceirosVOs) {
|
for (EventosFinanceirosVO rcc : eventosFinanceirosVOs) {
|
||||||
|
if(rcc.getFeccorte() != null) {
|
||||||
if (DateUtil.compareOnlyDate(rcc.getFeccorte(), dataRegistro) == 0) {
|
if (DateUtil.compareOnlyDate(rcc.getFeccorte(), dataRegistro) == 0) {
|
||||||
aux.add(rcc);
|
aux.add(rcc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return aux;
|
return aux;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue