Skip to content

Commit

Permalink
BugID: 561 - Gestione Incarichi
Browse files Browse the repository at this point in the history
  • Loading branch information
mdurso committed Mar 7, 2011
1 parent bac6c67 commit e67b39a
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -231,19 +231,15 @@ public Repertorio_limitiBulk aggiornaRepertorioLimiti(UserContext userContext, i

importo = importo.setScale(2, BigDecimal.ROUND_HALF_EVEN);

boolean isUoEnte = ((Unita_organizzativaBulk)getHome(userContext, Unita_organizzativaBulk.class).
findByPrimaryKey(new Unita_organizzativaBulk(CNRUserContext.getCd_unita_organizzativa(userContext)))).
getCd_tipo_unita().compareTo(it.cnr.contab.config00.sto.bulk.Tipo_unita_organizzativaHome.TIPO_UO_ENTE)==0;

if (reperBulk.getFl_raggiunto_limite() && !isUoEnte && importo.compareTo(Utility.ZERO)==1)
if (reperBulk.getFl_raggiunto_limite() && importo.compareTo(Utility.ZERO)==1)
throw new ApplicationException(
"Impossibile effettuare l'operazione !\n\n"+
"Nell'esercizio "+esercizio+ " per la combinazione: \n\n"+
"- Tipo Incarico: "+tipoIncaricoBulk.getDs_tipo_incarico()+"\n"+
"- Tipo Attivita: "+tipoAttivitaBulk.getDs_tipo_attivita()+"\n"+
"- Natura: "+NaturaBulk.tipo_naturaKeys.get(cd_tipo_natura)+"\n\n"+
"è stato raggiunto il limite.");
else if (!isUoEnte) {
else {
if (reperBulk.getImporto_residuo().compareTo(Utility.ZERO)==0 && importo.compareTo(Utility.ZERO)==1)
throw new ApplicationException(
"Impossibile effettuare l'operazione !\n\n"+
Expand Down

0 comments on commit e67b39a

Please sign in to comment.