Examples of IncorrectDataException


Examples of it.pdor.generatorePdA.exception.IncorrectDataException

    calcolatoreSpesa.calcolaSpese(finanziamento);

    Double importoRataCalcolato = CalcolaImporti.calcolaImportoRata(finanziamento);

    if (!controlloIsDatiCorretti(finanziamento))
      throw new IncorrectDataException(messages.getMessage("generatorePdA.calcoloRata.datiNonCorretti"));

    if ( "S".equalsIgnoreCase(finanziamento.getFlagArrotondamento() ) ) {
      importoRataCalcolato = NumberUtils.arrotonda(importoRataCalcolato, ARROTONDAMENTO_RATA);
    } else {
      double d = importoRataCalcolato + ARROTONDAMENTO_IN_ECCESSO;
View Full Code Here

Examples of it.pdor.generatorePdA.exception.IncorrectDataException

    } else {
      if (numeroRateSoloInteressi == null || numeroRateSoloInteressi == 0)
        return numeroRate;
      else {
        if (numeroRate <= numeroRateSoloInteressi) {
          throw new IncorrectDataException(messages.getMessage("generatorePdA.getNumeroRateNonSoloInteressi.soloInteressiMaggioreTotali"));
        } else {
          return numeroRate - numeroRateSoloInteressi;
        }

      }
View Full Code Here

Examples of it.pdor.generatorePdA.exception.IncorrectDataException

          + " * " + tassoPeriodale + ") - (1 - "
          + percentualeFinanziato + " + " + percentualeInteressi
          + "))))");
    } catch (Exception e) {
      CalcolatoreRataImpl.log.debug(e, e);
      throw new  IncorrectDataException(messages.getMessage("generatorePdA.calcolaImportoRata.datiNonCorretti"));         
    }
    return (importoRata == null) ? 0 : importoRata;
  }
View Full Code Here

Examples of it.pdor.generatorePdA.exception.IncorrectDataException

          || CostantiProdotti.RATA_COSTANTE_N.value().equals(fin.getCodProdotto()) ){
       
        fin = ricalcolaCost.ricalcolaPianoAmmortamento(fin, (MovimentoRimborsoTrad) nuovoMovimento);
        fin = calcolaTotali(fin);
      }else{
        throw new IncorrectDataException(messages.getMessage("generatorePdA.pianoNonGestito"));
      }
    }else{
      throw new IncorrectDataException(messages.getMessage("generatorePdA.pianoNonGestito"));
    }
   
    //Ricalcolo il piano IAS
    fin = ricalcolaPianoIas(fin);
   
View Full Code Here

Examples of it.pdor.generatorePdA.exception.IncorrectDataException

      }
      fin = ricalcolaGraduati.ricalcolaPianoAmmortamentoGraduati(fin, movimentoPda);
     
    }else{
     
      throw new IncorrectDataException(messages.getMessage("generatorePdA.pianoNonGestito"));
    }
   
    //Ricalcolo il piano IAS
    fin = ricalcolaPianoIas(fin);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.