fixed bug #7458 - Correção de bug ao tentar gerar pricing automático com ocupação.

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@58721 d1611594-4594-4d17-8e1d-87c2c4800839
master
thiago 2016-08-04 11:52:27 +00:00
parent d9f4af9731
commit 2b679b4bfb
1 changed files with 3 additions and 1 deletions

View File

@ -142,7 +142,9 @@ public class EditarPricingOcupaAntecipaAutomaticoController extends MyGenericFor
try { try {
apagarRegistros(); apagarRegistros();
for (int i = 0; i < lsPricingOcupaAntecipa.size(); i++) { for (int i = 0; i < lsPricingOcupaAntecipa.size(); i++) {
lsPricingOcupaAntecipa.get(i).setOcupacioninicial(new BigDecimal(0)); if(lsPricingOcupaAntecipa.get(i).getOcupacioninicial() == null){
lsPricingOcupaAntecipa.get(i).setOcupacioninicial(BigDecimal.ZERO);
}
if (lsPricingOcupaAntecipa.get(i).getPricingocupaantecipaId() == null) { if (lsPricingOcupaAntecipa.get(i).getPricingocupaantecipaId() == null) {
pricingOcupaAntecipaService.suscribir(lsPricingOcupaAntecipa.get(i)); pricingOcupaAntecipaService.suscribir(lsPricingOcupaAntecipa.get(i));
} else { } else {