fixed bug #7458 - Correção de bug ao tentar gerar pricing automático.
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@58793 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
69f924ed94
commit
64be7cedc2
|
@ -139,9 +139,18 @@ public class EditarPricingOcupaAntecipaAutomaticoController extends MyGenericFor
|
|||
public void onClick$btnAdicionarOcupaAntecipa(Event ev) throws Exception {
|
||||
List<PricingOcupaAntecipa> parentList = new ArrayList<PricingOcupaAntecipa>();
|
||||
calculaCantDiasMax();
|
||||
Integer cantDiasMin = 0;
|
||||
try {
|
||||
apagarRegistros();
|
||||
for (int i = 0; i < lsPricingOcupaAntecipa.size(); i++) {
|
||||
if(!cantDiasMin.equals(lsPricingOcupaAntecipa.get(i).getCantdiasmin())){
|
||||
if(rdOcupacao.isChecked()){
|
||||
lsPricingOcupaAntecipa.get(i).setOcupacioninicial(BigDecimal.ZERO);
|
||||
}else{
|
||||
lsPricingOcupaAntecipa.get(i).setCantasientosmin(0);
|
||||
}
|
||||
|
||||
}
|
||||
if(lsPricingOcupaAntecipa.get(i).getOcupacioninicial() == null){
|
||||
lsPricingOcupaAntecipa.get(i).setOcupacioninicial(BigDecimal.ZERO);
|
||||
}
|
||||
|
@ -153,6 +162,7 @@ public class EditarPricingOcupaAntecipaAutomaticoController extends MyGenericFor
|
|||
|
||||
parentList.add(lsPricingOcupaAntecipa.get(i));
|
||||
|
||||
cantDiasMin = lsPricingOcupaAntecipa.get(i).getCantdiasmin();
|
||||
if(validaPricingOcupa(i)){
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue